javascript - 产生 ENOENT node.js 错误

标签 javascript node.js express express-generator

我已经使用 express-generator 启动了一个 node.js 应用程序,我有一个奇怪的问题,我无法通过浏览器查看页面两次,第一次它加载正常,第二次它没有作为 Node 进程以以下错误结束:

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)

包.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 没有安装在我的路径中,因为我假设 Node 库有它的 JS 实现。 对于有类似问题的人,gem instal compass 应该修复它。 Compass Documentation

关于javascript - 产生 ENOENT node.js 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25090140/

相关文章:

javascript - 使用 Angularjs 应用程序设置 Python 服务器并捕获用户输入

javascript - 使用连接键将 JS 子对象合并为 JS 对象

javascript - 无法发布到 node.js - 从 angularjs 表达

JavaScript 数组 : string indexed items

node.js - req.body 返回空对象(我已经包含了 bodyparser)

node.js - 使用Backbone.js框架如何进行ajax调用快速路由

JavaScript 在 Acrobat 中工作但在 Reader 中不工作

javascript - 如何使用 jsdoc 注释注释 React.forwardRef 以便智能感知可以显示在底层组件中?

node.js - 根据 mongoose、mongoDB 中的条件填充

javascript - 使用 knex.js 查询多个表