| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f8b2156 commit 3ceeb57
174 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,6 +12,9 @@ case `uname` in | |||
| 12 | 12 | esac | |
| 13 | 13 | ||
| 14 | 14 | NODE_EXE="$basedir/node.exe" | |
| 15 | + if ! [ -x "$NODE_EXE" ]; then | ||
| 16 | + NODE_EXE="$basedir/node" | ||
| 17 | + fi | ||
| 15 | 18 | if ! [ -x "$NODE_EXE" ]; then | |
| 16 | 19 | NODE_EXE=node | |
| 17 | 20 | fi | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -399,6 +399,18 @@ This value is not exported to the environment for child processes. | |||
| 399 | 399 | <!-- automatically generated, do not edit manually --> | |
| 400 | 400 | <!-- see lib/utils/config/definitions.js --> | |
| 401 | 401 | ||
| 402 | + #### `install-links` | ||
| 403 | + | ||
| 404 | + * Default: false | ||
| 405 | + * Type: Boolean | ||
| 406 | + | ||
| 407 | + When set file: protocol dependencies that exist outside of the project root | ||
| 408 | + will be packed and installed as regular dependencies instead of creating a | ||
| 409 | + symlink. This option has no effect on workspaces. | ||
| 410 | + | ||
| 411 | + <!-- automatically generated, do not edit manually --> | ||
| 412 | + <!-- see lib/utils/config/definitions.js --> | ||
| 413 | + | ||
| 402 | 414 | <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> | |
| 403 | 415 | ||
| 404 | 416 | ### See Also | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -48,8 +48,9 @@ In short, the main differences between using `npm install` and `npm ci` are: | |||
| 48 | 48 | ||
| 49 | 49 | NOTE: If you create your `package-lock.json` file by running `npm install` | |
| 50 | 50 | with flags that can affect the shape of your dependency tree, such as | |
| 51 | - `--legacy-peer-deps`, you _must_ provide the same flags to `npm ci` or you | ||
| 52 | - are likely to encounter errors. An easy way to do this is to run | ||
| 51 | + `--legacy-peer-deps` or `--install-links`, you _must_ provide the same | ||
| 52 | + flags to `npm ci` or you are likely to encounter errors. An easy way to do | ||
| 53 | + this is to run, for example, | ||
| 53 | 54 | `npm config set legacy-peer-deps=true --location=project` and commit the | |
| 54 | 55 | `.npmrc` file to your repo. | |
| 55 | 56 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -310,6 +310,18 @@ This value is not exported to the environment for child processes. | |||
| 310 | 310 | <!-- automatically generated, do not edit manually --> | |
| 311 | 311 | <!-- see lib/utils/config/definitions.js --> | |
| 312 | 312 | ||
| 313 | + #### `install-links` | ||
| 314 | + | ||
| 315 | + * Default: false | ||
| 316 | + * Type: Boolean | ||
| 317 | + | ||
| 318 | + When set file: protocol dependencies that exist outside of the project root | ||
| 319 | + will be packed and installed as regular dependencies instead of creating a | ||
| 320 | + symlink. This option has no effect on workspaces. | ||
| 321 | + | ||
| 322 | + <!-- automatically generated, do not edit manually --> | ||
| 323 | + <!-- see lib/utils/config/definitions.js --> | ||
| 324 | + | ||
| 313 | 325 | <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> | |
| 314 | 326 | ||
| 315 | 327 | ### See Also | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -234,6 +234,18 @@ This value is not exported to the environment for child processes. | |||
| 234 | 234 | <!-- automatically generated, do not edit manually --> | |
| 235 | 235 | <!-- see lib/utils/config/definitions.js --> | |
| 236 | 236 | ||
| 237 | + #### `install-links` | ||
| 238 | + | ||
| 239 | + * Default: false | ||
| 240 | + * Type: Boolean | ||
| 241 | + | ||
| 242 | + When set file: protocol dependencies that exist outside of the project root | ||
| 243 | + will be packed and installed as regular dependencies instead of creating a | ||
| 244 | + symlink. This option has no effect on workspaces. | ||
| 245 | + | ||
| 246 | + <!-- automatically generated, do not edit manually --> | ||
| 247 | + <!-- see lib/utils/config/definitions.js --> | ||
| 248 | + | ||
| 237 | 249 | <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> | |
| 238 | 250 | ||
| 239 | 251 | ### See Also | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -319,6 +319,18 @@ This value is not exported to the environment for child processes. | |||
| 319 | 319 | <!-- automatically generated, do not edit manually --> | |
| 320 | 320 | <!-- see lib/utils/config/definitions.js --> | |
| 321 | 321 | ||
| 322 | + #### `install-links` | ||
| 323 | + | ||
| 324 | + * Default: false | ||
| 325 | + * Type: Boolean | ||
| 326 | + | ||
| 327 | + When set file: protocol dependencies that exist outside of the project root | ||
| 328 | + will be packed and installed as regular dependencies instead of creating a | ||
| 329 | + symlink. This option has no effect on workspaces. | ||
| 330 | + | ||
| 331 | + <!-- automatically generated, do not edit manually --> | ||
| 332 | + <!-- see lib/utils/config/definitions.js --> | ||
| 333 | + | ||
| 322 | 334 | <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> | |
| 323 | 335 | ||
| 324 | 336 | ### See Also | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -91,12 +91,12 @@ into a tarball (b). | |||
| 91 | 91 | *npm will not install the package dependencies* in the directory `<folder>`, | |
| 92 | 92 | but it will create a symlink to `<folder>`. | |
| 93 | 93 | ||
| 94 | - > NOTE: If you want to install the content of a directory like a package from the registry instead of creating a link, you would need to use [`npm pack`](/commands/npm-pack) while in the `<folder>` directory, and then install the resulting tarball instead of the `<folder>` using `npm install <tarball file>` | ||
| 94 | + > NOTE: If you want to install the content of a directory like a package from the registry instead of creating a link, you would need to use the `--install-links` option. | ||
| 95 | 95 | ||
| 96 | 96 | Example: | |
| 97 | 97 | ||
| 98 | 98 | ```bash | |
| 99 | - npm install ../../other-package | ||
| 99 | + npm install ../../other-package --install-links | ||
| 100 | 100 | npm install ./sub-package | |
| 101 | 101 | ``` | |
| 102 | 102 | ||
@@ -709,6 +709,18 @@ This value is not exported to the environment for child processes. | |||
| 709 | 709 | <!-- automatically generated, do not edit manually --> | |
| 710 | 710 | <!-- see lib/utils/config/definitions.js --> | |
| 711 | 711 | ||
| 712 | + #### `install-links` | ||
| 713 | + | ||
| 714 | + * Default: false | ||
| 715 | + * Type: Boolean | ||
| 716 | + | ||
| 717 | + When set file: protocol dependencies that exist outside of the project root | ||
| 718 | + will be packed and installed as regular dependencies instead of creating a | ||
| 719 | + symlink. This option has no effect on workspaces. | ||
| 720 | + | ||
| 721 | + <!-- automatically generated, do not edit manually --> | ||
| 722 | + <!-- see lib/utils/config/definitions.js --> | ||
| 723 | + | ||
| 712 | 724 | <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> | |
| 713 | 725 | ||
| 714 | 726 | ### Algorithm | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -387,6 +387,18 @@ This value is not exported to the environment for child processes. | |||
| 387 | 387 | <!-- automatically generated, do not edit manually --> | |
| 388 | 388 | <!-- see lib/utils/config/definitions.js --> | |
| 389 | 389 | ||
| 390 | + #### `install-links` | ||
| 391 | + | ||
| 392 | + * Default: false | ||
| 393 | + * Type: Boolean | ||
| 394 | + | ||
| 395 | + When set file: protocol dependencies that exist outside of the project root | ||
| 396 | + will be packed and installed as regular dependencies instead of creating a | ||
| 397 | + symlink. This option has no effect on workspaces. | ||
| 398 | + | ||
| 399 | + <!-- automatically generated, do not edit manually --> | ||
| 400 | + <!-- see lib/utils/config/definitions.js --> | ||
| 401 | + | ||
| 390 | 402 | <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> | |
| 391 | 403 | ||
| 392 | 404 | ### See Also | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -285,6 +285,18 @@ This value is not exported to the environment for child processes. | |||
| 285 | 285 | <!-- automatically generated, do not edit manually --> | |
| 286 | 286 | <!-- see lib/utils/config/definitions.js --> | |
| 287 | 287 | ||
| 288 | + #### `install-links` | ||
| 289 | + | ||
| 290 | + * Default: false | ||
| 291 | + * Type: Boolean | ||
| 292 | + | ||
| 293 | + When set file: protocol dependencies that exist outside of the project root | ||
| 294 | + will be packed and installed as regular dependencies instead of creating a | ||
| 295 | + symlink. This option has no effect on workspaces. | ||
| 296 | + | ||
| 297 | + <!-- automatically generated, do not edit manually --> | ||
| 298 | + <!-- see lib/utils/config/definitions.js --> | ||
| 299 | + | ||
| 288 | 300 | <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> | |
| 289 | 301 | ||
| 290 | 302 | ### See Also | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -191,6 +191,18 @@ This value is not exported to the environment for child processes. | |||
| 191 | 191 | <!-- automatically generated, do not edit manually --> | |
| 192 | 192 | <!-- see lib/utils/config/definitions.js --> | |
| 193 | 193 | ||
| 194 | + #### `install-links` | ||
| 195 | + | ||
| 196 | + * Default: false | ||
| 197 | + * Type: Boolean | ||
| 198 | + | ||
| 199 | + When set file: protocol dependencies that exist outside of the project root | ||
| 200 | + will be packed and installed as regular dependencies instead of creating a | ||
| 201 | + symlink. This option has no effect on workspaces. | ||
| 202 | + | ||
| 203 | + <!-- automatically generated, do not edit manually --> | ||
| 204 | + <!-- see lib/utils/config/definitions.js --> | ||
| 205 | + | ||
| 194 | 206 | <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> | |
| 195 | 207 | ||
| 196 | 208 | ### See Also | |
| Back | FazBrowse Home | New Git URL |
0 commit comments