名为 "install" 的 npm run-script 是否具有特殊地位?

Does a npm run-script named "install" has special status?

我有一个 package.json 和两个

"dependencies": {
  "d3": "~3.5.5",
  "forever": "^0.14.1"
},
"scripts": {
   "install":   "make -f install.makefile"
   "data":  "make -f data.makefile core",
   "serve": "node ./node_modules/.bin/forever ./node_modules/.bin/http-server"

}

当我通过 运行 npm run 检查我的脚本时,我得到:

不知道 "install" 是不是保留关键字,因为它没有与其他脚本分组。

install 是在 packages.json 的脚本对象中具有特殊行为的保留字吗?

来自文档:https://docs.npmjs.com/misc/scripts

install, postinstall: Run AFTER the package is installed.

它不是保留的,而是 npm's built-in commands 之一。

意思是 npm run install,你会执行 npm install