forked ember npm run build失败

时间:2014-10-25 13:54:09

标签: ember.js

我似乎无法在我的系统上构建ember.js(mac osx Yosemite node v0.11.14 npm 2.0.0 。 npm install有效但npm run build会产生以下输出:

    Cannot find module './build/Release/shell'
    Error: Cannot find module './build/Release/shell'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/stockn/ember.js/node_modules/ember-cli-yuidoc/node_modules/execSync/index.js:30:11)
    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)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/stockn/ember.js/node_modules/ember-cli-yuidoc/lib/commands/yuidoc.js:3:19)

1 个答案:

答案 0 :(得分:0)

结果显示节点的版本是问题所在。我安装了节点版本管理器https://github.com/creationix/nvm然后运行了
nvm install 0.10.26 现在npm run build成功运行。