Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBoris Verkhovskiy <boris.verk@gmail.com>2022-03-30 19:08:43 +0300
committerGitHub <noreply@github.com>2022-03-30 19:08:43 +0300
commitff1367f01b9dd924d039b5a6b58399101cac99ca (patch)
tree5ad3567c10cc0f21c772fd1bcd6c20e0491a1813 /docs
parenta59fd2cb863245fce56f96c90ac854e62c5c4d6f (diff)
docs: recommend prepare over prepublish (#4641)
Diffstat (limited to 'docs')
-rw-r--r--docs/content/using-npm/scripts.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/using-npm/scripts.md b/docs/content/using-npm/scripts.md
index 7df289b3b..a4fdb75e9 100644
--- a/docs/content/using-npm/scripts.md
+++ b/docs/content/using-npm/scripts.md
@@ -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`