哟angular无法找到模块bower-config

时间:2014-08-15 11:12:27

标签: angularjs yeoman

我正试图与自耕农第一次开始。我想使用以下命令创建一个角度应用程序:

yo angular

但我收到以下错误:

Error: Cannot find module '/Users/mel/workspaces/protractor-techevent/node_modules/bower-config'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at /usr/local/lib/node_modules/generator-angular/node_modules/wiredep/node_modules/modmod/index.js:5:16
at Array.reduce (native)
at module.exports (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/node_modules/modmod/index.js:3:35)
at Object.<anonymous> (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/wiredep.js:3:26)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)

我检查了自耕农常见问题,谷歌搜索但找不到答案。有人有想法吗?

使用OS X 10.9.4,npm 1.4.23,yeoman 1.2.1(医生说好了),发电机角度0.9.5,凉亭1.3.9

1 个答案:

答案 0 :(得分:2)

这意味着缺少节点模块“bower-config”。

运行“npm install bower-config”。我猜“粉笔”模块也会丢失。

尝试手动重新安装bower“npm install -g bower”,这应解决所有遗漏的依赖关系。

也许你还需要运行

npm update -g