[英]spawn ENOENT node.js error
I have started a node.js app with the express-generator, I have a strange issue where I can't view a page via the browser twice, first time it loads fine, second time it doesn't as the node process ends with the following error: 我已经使用快速生成器启动了一个node.js应用程序,我有一个奇怪的问题,我无法通过浏览器两次查看页面,第一次加载正常,第二次没有因为节点进程结束以下错误:
GET / 304 412ms
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:988:11)
at Process.ChildProcess._handle.onexit (child_process.js:779:34)
package.json 的package.json
{
"name": "example01-express",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node-dev ./bin/www"
},
"dependencies": {
"body-parser": "~1.0.0",
"cookie-parser": "~1.0.1",
"debug": "~0.7.4",
"express": "~4.2.0",
"jade": "~1.3.0",
"morgan": "~1.0.0",
"node-compass": "0.2.3",
"static-favicon": "~1.0.0"
},
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-cssmin": "*",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-sass": "*",
"grunt-contrib-uglify": "*",
"grunt-contrib-watch": "*",
"grunt-cssc": "*",
"grunt-htmlhint": "*",
"matchdep": "*"
}
}
Compass was not installed in my path as I assumed the node library had a JS implementation of it. Compass没有安装在我的路径中,因为我假设节点库有一个JS实现它。 For whoever has a similar issue gem instal compass
should fix it. 对于有类似问题的人, gem instal compass
应该修复它。 Compass Documentation 指南针文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.