【问题标题】:Default Express app with Compass gives ENOENT带有 Compass 的默认 Express 应用程序提供 ENOENT
【发布时间】:2014-07-27 09:49:18
【问题描述】:

Ubuntu 14.04 节点 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

有人知道这是为什么吗?

【问题讨论】:

    标签: node.js express compass-sass


    【解决方案1】:

    解决办法是

    $ gem update --system
    $ gem install compass
    

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

    【讨论】:

    • 无论你在哪里,如果身边有人围着,请找人用力拥抱你!
    • @Viground 非常感谢!经过数小时的失败尝试,终于找到了解决方案。顺便说一句,获取指南针的另一种方法是sudo apt-get install ruby-compass
    猜你喜欢
    • 2015-07-28
    • 2015-05-25
    • 1970-01-01
    • 1970-01-01
    • 2011-10-14
    • 2012-04-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多