Skip to content

Commit

Permalink
docs: recommend prepare over prepublish (#4641)
Browse files Browse the repository at this point in the history
  • Loading branch information
verhovsky authored Mar 30, 2022
1 parent a59fd2c commit ff1367f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/using-npm/scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ file.
* Don't prefix your script commands with "sudo". If root permissions
are required for some reason, then it'll fail with that error, and
the user will sudo the npm command in question.
* Don't use `install`. Use a `.gyp` file for compilation, and `prepublish`
* Don't use `install`. Use a `.gyp` file for compilation, and `prepare`
for anything else. You should almost never have to explicitly set a
preinstall or install script. If you are doing this, please consider if
there is another option. The only valid use of `install` or `preinstall`
Expand Down

0 comments on commit ff1367f

Please sign in to comment.