在我的node.js项目中,我如何只运行
postinstall
脚本,而不运行安装?
仅供参考,这是我的 package.json :
{
"name": "gestionclientjs",
...,
"dependencies": {
...
},
"repository": {},
"devDependencies": {
...
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "grunt test",
"postinstall" : "bower install && node ./app/server/dbSeed.js",
"start": "node app/server/app.js"
}
}
现在,我跑步:
npm install
在我的项目中,但我想运行
npm postinstall
当我想要时(并且当我确定依赖项没问题时)。