diff options
author | Daniel Park <gimli01@github.com> | 2021-06-03 03:56:39 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-06-03 19:09:49 +0300 |
commit | bc9c57dda7cf3abcdee17550205daf1a82e90438 (patch) | |
tree | f57afe03daeacd78cecb436ee7408e1b6fbfd951 /docs | |
parent | e92b5f2ba07746ae07646566f3dc73c9e004a2fc (diff) |
chore: update docs npm
Removes documentation for '--scripts-prepend-node-path' as this was removed in npm@7
PR-URL: https://github.com/npm/cli/pull/3353
Credit: @gimli01
Close: #3353
Reviewed-by: @wraithgar
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/commands/npm-run-script.md | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/docs/content/commands/npm-run-script.md b/docs/content/commands/npm-run-script.md index 1d11a74fa..5e3828c40 100644 --- a/docs/content/commands/npm-run-script.md +++ b/docs/content/commands/npm-run-script.md @@ -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 @@ -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 --> |