Skip to content

Commit

Permalink
chore: update docs npm
Browse files Browse the repository at this point in the history
Removes documentation for '--scripts-prepend-node-path' as this was removed in npm@7

PR-URL: #3353
Credit: @gimli01
Close: #3353
Reviewed-by: @wraithgar
  • Loading branch information
Daniel Park authored and wraithgar committed Jun 3, 2021
1 parent e92b5f2 commit bc9c57d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions docs/content/commands/npm-run-script.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,7 @@ can use the `INIT_CWD` environment variable, which holds the full path you
were in when you ran `npm run`.

`npm run` sets the `NODE` environment variable to the `node` executable
with which `npm` is executed. Also, if the `--scripts-prepend-node-path` is
passed, the directory within which `node` resides is added to the `PATH`.
If `--scripts-prepend-node-path=auto` is passed (which has been the default
in `npm` v3), this is only performed when that `node` executable is not
found in the `PATH`.
with which `npm` is executed.

If you try to run a script without having a `node_modules` directory and it
fails, you will be given a warning to run `npm install`, just in case you've
Expand Down Expand Up @@ -138,7 +134,6 @@ npm test -w a -w b
This last command will run `test` in both `./packages/a` and `./packages/b`
packages.


### Configuration

<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
Expand Down

0 comments on commit bc9c57d

Please sign in to comment.