Vig*_*ond 3 node.js express compass-sass
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
Run Code Online (Sandbox Code Playgroud)
从浏览器发送请求
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
Run Code Online (Sandbox Code Playgroud)
有谁知道这是为什么?
解决方案是
$ gem update --system
$ gem install compass
Run Code Online (Sandbox Code Playgroud)
根据包文档 https://www.npmjs.org/package/node-compass