【发布时间】:2017-05-02 12:13:16
【问题描述】:
我有一个项目正在开发中
yarn start
它运行一个 index.js 启动一个 grunt 进程并得到这个错误:
$ yarn start
yarn start v0.23.2
$ node ./development
grunt_arguments [ '--force', '--notify', '--verbose', '--debug', '--stack' ]
=======================================
Open http://localhost:8000 to start developing
events.js:141
throw er; // Unhandled 'error' event
^
Error: spawn ./node_modules/.bin/grunt ENOENT
at exports._errnoException (util.js:907:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:189:32)
at onErrorNT (internal/child_process.js:355:16)
at nextTickCallbackWith2Args (node.js:458:9)
at process._tickCallback (node.js:372:17)
at Function.Module.runMain (module.js:443:11)
at startup (node.js:139:18)
at node.js:990:3
error Command failed with exit code 1.
不知道会是什么。环境是:
- Win10
- 使用 MINGW64 运行
【问题讨论】:
标签: node.js windows gruntjs child-process