Default Express app with Compass gives ENOENT

若如初见. 提交于 2019-12-23 17:00:39

问题


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

send request from browser

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

Anyone know why this is?


回答1:


The solution is to

$ gem update --system
$ gem install compass

per the package docs https://www.npmjs.org/package/node-compass



来源:https://stackoverflow.com/questions/24977115/default-express-app-with-compass-gives-enoent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!