[英]Getting unhandled error event when running Yeoman
When I run Yeoman I get this error: 当我运行Yeoman时,出现以下错误:
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:1001:11)
at Process.ChildProcess._handle.onexit (child_process.js:792:34)
Does anyone know what this might be? 有谁知道这可能是什么? I don't know if it's an OS problem, but I did recently get a new computer which was upgraded to Yosemite.
我不知道这是否是操作系统问题,但最近我确实获得了一台新计算机,该计算机已升级到优胜美地。 This happened the first time I ran Yeoman after setting up my environment.
设置环境后,我第一次运行Yeoman时就发生了这种情况。
I just got the same error with Yeoman. 我和Yeoman遇到了同样的错误。 The default gulp task is 'clean'.
gulp的默认任务是'clean'。
I commented out this line: 我注释了这一行:
gulp.task('clean', function (done) {
//$.del(['dist/', '.tmp/'], done);
});
You could either try resolving the issue with the del
npm module or use gulp-clean
instead. 您可以尝试使用
del
npm模块解决问题,也可以改用gulp-clean
。
On a side note, if you need to run the server, run gulp serve
附带说明一下,如果您需要运行服务器,请运行
gulp serve
Make sure you're running an stable version of npm : 确保您正在运行npm的稳定版本:
> npm install -g npm@latest
Best. 最好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.