Module did not self-register 错误处理

最近node.js 和 io.js 分家, 造成了node-sass崩掉

*[develop][~/Projects/venus]$ ember s
version: 0.1.15
Livereload server on port 35729
Serving on http://0.0.0.0:4200/
Module did not self-register.
Error: Module did not self-register.
    at Error (native)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/ZoOL/Projects/venus/node_modules/broccoli-sass/node_modules/node-sass/lib/index.js:181:15)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

处理方法, 回退node版本

npm install -g n
n 0.10
node --version
comments powered by Disqus