我使用Angular js完成了一个应用程序,我正在尝试使用yeoman构建它。
我已完成以下步骤:
npm install -g yo grunt-cli bower
npm install -g generator-angular
yo angular
在.bowerecc文件中,
{ “目录”:“app / components”, “json”:“bower.json”//添加此行 }
bower安装angular-bootstrap --save
grunt服务器
在此之后,
>> Local Npm module "grunt-karma" not found. Is it installed?
Warning: Task "watch" not found. Use --force to continue.
Aborted due to warnings.
然后我做了npm install grunt-karma
但得到了
npm WARN unmet dependency C:\Users\584042\Documents\tools\nodejs\nodejs\node_modules\grunt requires async@'~0.1.22' but will load
npm WARN unmet dependency C:\Users\584042\Documents\tools\nodejs\nodejs\node_modules\async,
npm WARN unmet dependency which is version 0.2.9
npm ERR! peerinvalid The package bower does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer grunt-bower-requirejs@0.4.4 wants bower@~0.x
npm ERR! peerinvalid Peer yo@1.1.2 wants bower@>=0.9.0
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Users\\584042\\Documents\\tools\\nodejs\\nodejs\\\\node.exe" "C:\\Users\\584042\\Documents\\tools\\nodejs\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
"generator-angular"
npm ERR! cwd C:\Users\584042\Documents\tools\nodejs\nodejs
npm ERR! node -v v0.10.7
npm ERR! npm -v 1.2.14
npm ERR! code EPEERINVALID
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\584042\Documents\tools\nodejs\nodejs\npm-debug.log
npm ERR! not ok code 0
请建议