angularjs - 哟 Angular 未正确发出

标签 angularjs node.js bower yeoman-generator-angular

当我发出yo angular时,它会打印出以下日志,但没有文件

yo angular

     _-----_
    |       |    .--------------------------.
    |--(o)--|    |    Welcome to Yeoman,    |
   `---------´   |   ladies and gentlemen!  |
    ( _´U`_ )    '--------------------------'
    /___A___\    
     |  ~  |     
   __'.___.'__   
 ´   `  |° ´ Y ` 

Out of the box I include Bootstrap and some AngularJS recommended modules.

? Would you like to use Sass (with Compass)? Yes
? Would you like to include Bootstrap? Yes
? Would you like to use the Sass version of Bootstrap? No
? Which modules would you like to include? angular-animate.js, angular-cookies.js, angular-resource.js, angular-route.js, angular-sanitize.js, angular-touch.js
identical app/styles/main.scss
 conflict app/index.html
? Overwrite app/index.html? overwrite
    force app/index.html
identical bower.json
identical .bowerrc
 conflict package.json
? Overwrite package.json? overwrite
    force package.json
identical Gruntfile.js
identical README.md
   invoke   angular:common:/usr/local/lib/node_modules/generator-angular/app/index.js
identical     .editorconfig
identical     .gitattributes
identical     .jshintrc
identical     .yo-rc.json
identical     .gitignore
identical     test/.jshintrc
identical     app/.buildignore
identical     app/.htaccess
identical     app/404.html
identical     app/favicon.ico
identical     app/robots.txt
identical     app/views/main.html
identical     app/images/yeoman.png
   invoke   angular:main:/usr/local/lib/node_modules/generator-angular/app/index.js
 conflict     app/scripts/app.js
? Overwrite app/scripts/app.js? overwrite
    force     app/scripts/app.js
   invoke   angular:controller:/usr/local/lib/node_modules/generator-angular/app/index.js
identical     app/scripts/controllers/main.js
identical     test/spec/controllers/main.js
y
y   invoke   karma:app


I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try running the command yourself.


   invoke       angular:route

   invoke           angular:controller:/usr/local/lib/node_modules/generator-angular/route/index.js
identical             app/scripts/controllers/about.js
identical             test/spec/controllers/about.js
   invoke           angular:view:/usr/local/lib/node_modules/generator-angular/route/index.js
identical             app/views/about.html
 conflict     test/karma.conf.js
? Overwrite test/karma.conf.js? overwrite
    force     test/karma.conf.js
identical     .travis.yml
y
y
npm WARN prefer global bower@1.3.1 should be installed with -g
Loading "connect.js" tasks...ERROR
>> Error: Cannot find module 'connect'
Loading "cssmin.js" tasks...ERROR
>> Error: Cannot find module 'source-map'
Loading "jshint.js" tasks...ERROR
>> Error: Cannot find module 'underscore'
Loading "uglify.js" tasks...ERROR
>> Error: Cannot find module 'chalk'
Loading "watch.js" tasks...ERROR
>> Error: Cannot find module 'qs'
Loading "cdnify.js" tasks...ERROR
>> Error: Cannot find module 'async'
Loading "ng-annotate.js" tasks...ERROR
>> Error: Cannot find module 'simple-fmt'
Loading "svgmin.js" tasks...ERROR
>> Error: Cannot find module 'js-yaml'

Running "wiredep:app" (wiredep) task

Running "wiredep:test" (wiredep) task

Running "wiredep:sass" (wiredep) task

Done, without errors.


Execution Time (2015-04-03 07:14:06 UTC)
loading tasks   14ms  ▇▇▇▇ 3%
wiredep:app    330ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 81%
wiredep:test    27ms  ▇▇▇▇▇▇ 7%
wiredep:sass    33ms  ▇▇▇▇▇▇▇▇ 8%
Total 406ms

npm WARN unmet dependency /home/g/Projects/node_modules/grunt-google-cdn/node_modules/google-cdn requires bower@'~1.3.1' but will load
npm WARN unmet dependency /home/g/Projects/node_modules/grunt-google-cdn/node_modules/bower,
npm WARN unmet dependency which is version 1.4.1
/
> phantomjs@1.9.16 install /home/g/Projects/node_modules/karma-phantomjs-launcher/node_modules/phantomjs
> node install.js

Looks like an `npm install -g`; unable to check for already installed version.
Download already available at /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2
Extracting tar contents (via spawned process)
Removing /home/g/Projects/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom
Copying extracted folder /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2-extract-1428045256553/phantomjs-1.9.8-linux-x86_64 -> /home/g/Projects/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /home/g/Projects/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/bin/phantomjs
npm WARN unmet dependency /home/g/Projects/node_modules/grunt-google-cdn/node_modules/google-cdn requires bower@'~1.3.1' but will load
npm WARN unmet dependency /home/g/Projects/node_modules/grunt-google-cdn/node_modules/bower,
npm WARN unmet dependency which is version 1.4.1
karma-jasmine@0.3.5 node_modules/karma-jasmine

grunt-karma@0.10.1 node_modules/grunt-karma
└── lodash@2.4.1

karma-phantomjs-launcher@0.1.4 node_modules/karma-phantomjs-launcher
└── phantomjs@1.9.16 (which@1.0.9, progress@1.1.8, kew@0.4.0, adm-zip@0.4.4, request-progress@0.3.1, npmconf@2.1.1, request@2.42.0, fs-extra@0.16.5)

我已经在 npm 警告中为 google-cdn 部分安装了 Bower@1.3.1,不知道为什么它不起作用!

最佳答案

这很奇怪。它在我第一次运行它的另一个文件夹中生成我的文件。 Yo 发电机在我重新启动操作系统后工作了。

关于angularjs - 哟 Angular 未正确发出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29427923/

相关文章:

javascript - Angular JSON 与 JSONP $promise

angularjs - Angular 数据表中的多重分组

javascript - 使用 angularjs , nodejs , expressjs 单击按钮后在前端下载 Csv 文件

node.js - 在 Angular 2 中创建构建时 JavaScript 堆内存不足错误

node.js - SequelizeJS : Best way to get min ID and max ID in a table

bower - 从 URL 使用 Bower 安装依赖项并指定版本

javascript - 仅获取(或仅编译)Bootstrap Grid

css - 如何使用 Bower 在 Rails 应用程序中包含自己的 css 文件?

angularjs - 登录后symfony angularjs InsufficientAuthenticationException

javascript - 我应该如何将 ngResource 与特定的响应主体一起使用?