From bc9c57dda7cf3abcdee17550205daf1a82e90438 Mon Sep 17 00:00:00 2001 From: Daniel Park Date: Wed, 2 Jun 2021 17:56:39 -0700 Subject: [PATCH] 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 --- docs/content/commands/npm-run-script.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/content/commands/npm-run-script.md b/docs/content/commands/npm-run-script.md index 1d11a74faa244..5e3828c40717d 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