在 mycomposer.json中,有一个postinstall钩子设置,如下所示:
"scripts" : {
"dist" : "node dist; node_modules/.bin/doccoh src/package.js",
"postinstall" : "node_modules/.bin/grunt setup || true; node_modules/.bin/bower install",
"start" : "node server.js"
}
每当我运行它时(从 Git/Gnu Bash CLI 在 Win 上运行),我都会以
command not found. either the command was written wrong or couldn't be found
德语 CLI 错误的粗略翻译。
我尝试将其拆分为多个;/ 分号分隔的部分,然后首先cd进入该目录,但它最终会得到相同的错误消息。用一个简单的替换整个postinstall命令集ls确实有效。所以我想问题可能是分号分隔或命令的错误使用。但总的来说,我不知道出了什么问题。
注意:我全局安装了grunt-cli0.1.9 和grunt0.4.1 版本。