无法使用Yeoman构建和运行应用程序

时间:2014-01-13 09:58:05

标签: node.js angularjs yeoman-generator

我使用Angular js完成了一个应用程序,我正在尝试使用yeoman构建它。

我已完成以下步骤:

  1. npm install -g yo grunt-cli bower

  2. npm install -g generator-angular

  3. yo angular

  4. 在.bowerecc文件中,

    {   “目录”:“app / components”,   “json”:“bower.json”//添加此行 }

  5. bower安装angular-bootstrap --save

  6. grunt服务器

  7. 在此之后,

    >> 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
    

    请建议

0 个答案:

没有答案