node.js - 带有 Compass 的默认 Express 应用程序提供 ENOENT

标签 node.js express compass-sass

Ubuntu 14.04 Node 0.10.25 express 4.2.0

sudo apt-get install nodejs
npm install -g express-generator
express -c compass test
cd test
npm install
npm start

从浏览器发送请求

GET / 200 12ms - 206b

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)
npm ERR! weird error 8
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! not ok code 0

谁知道这是为什么?

最佳答案

解决办法是

$ gem update --system
$ gem install compass

根据包文档 https://www.npmjs.org/package/node-compass

关于node.js - 带有 Compass 的默认 Express 应用程序提供 ENOENT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24977115/

相关文章:

javascript - 如何从 Node.js 中的 Post 请求获取收据数据

python - 在本地计算机上利用拼写检查器?

javascript - Express - 条件路由

node.js - Node winston 不支持多文件传输?

javascript - Express.js 路由器和新对象实例化

css - compass $default-animation-duration 没有被使用?

css - 如何将 compass 与祝福结合起来?

node.js - 通过 Node AWS SDK 的 lambda.invoke 调用在 5 分钟内超时,而 Lambda 在 4 分钟内完成

javascript - 为什么 nodeJS 不能在 macOS Monterey 上运行?

compression - Compass, config.rb 并实际得到输出 :compressed