Skip to content

Commit 4e99636

Browse files
authored
Update scripts.md
1 parent 45c12d7 commit 4e99636

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/lib/content/using-npm/scripts.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,6 @@ If you want your script to behave differently based on the directory you were in
236236

237237
#### Historical Behavior in Older npm Versions
238238

239-
In npm v7 and later, scripts are always executed from the root of the package folder, regardless of your current working directory. This behavior is now reliable and consistent.
240-
241239
For npm v6 and earlier, scripts were generally run from the root of the package, but there were rare cases and bugs in older versions where this was not guaranteed. If your package must support very old npm versions, you may wish to add a safeguard in your scripts (for example, by checking process.cwd()).
242240

243241
For more details, see:
@@ -367,10 +365,9 @@ file.
367365
there is another option. The only valid use of `install` or `preinstall`
368366
scripts is for compilation which must be done on the target architecture.
369367

370-
371368
### See Also
372369

373370
* [npm run](/commands/npm-run)
374371
* [package.json](/configuring-npm/package-json)
375372
* [npm developers](/using-npm/developers)
376-
* [npm install](/commands/npm-install)
373+
* [npm install](/commands/npm-install)

0 commit comments

Comments
 (0)