首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装弯角

无法安装弯角
EN

Stack Overflow用户
提问于 2015-04-05 15:52:48
回答 1查看 701关注 0票数 0

我第一次使用的是吞咽角,并跟随这个博客:http://www.angularonrails.com/how-to-wire-up-ruby-on-rails-and-angularjs-as-a-single-page-application-gulp-version/

当我分析安装问题时,它只是在卡玛上爆炸。

我在ubuntu 14上,在一个真空盒中,节点v0.10.37,npm 2.7.5

任何指示都将不胜感激。

代码语言:javascript
复制
fluent@vagrant-ubuntu-trusty-64:~/fluent/client$ yo gulp-angular myapp
.
.
? Which version of Angular do you want? 1.3.x (latest)
? Which Angular's modules would you want to have? (ngRoute and ngResource will be addressed after) angular-animate.js (enable animation features),  angular-cookies.js (handle cookie management), angular-touch.js (for mobile development), angular-sanitize.js (to securely parse and manipulate HTML)
? Would you need jQuery or perhaps Zepto? None (Angular will use its own jqLite)
? Would you like to use a REST resource library? None, $http is enough!
? Would you like to use a router ? ngRoute, the official router
? Which UI framework do you want? Bootstrap, the most popular HTML, CSS, and JS framework
? How do you want to implements your Bootstrap components? Angular UI Bootstrap, Bootstrap components written in pure AngularJS by the AngularUI Team
? Which CSS preprocessor do you want? Sass (Node), Node.js binding to libsass, the C version of the popular stylesheet preprocessor, Sass.
? Which JS preprocessor do you want? None, I like to code in standard JavaScript.
? Which html template engine would you want? None, I like to code in standard HTML.
Template processing error on file karma.conf.js

events.js:72
    throw er; // Unhandled 'error' event
          ^
AssertionError: Trying to copy from a source that does not exist:     /usr/lib/node_modules/generator-gulp-angular/app/templates/karma.conf.js
at EditionInterface.exports._copySingle (/usr/lib/node_modules/generator-  gulp-angular/node_modules/yeoman-generator/node_modules/mem-fs- editor/actions/copy.js:44:3)

一些附加信息,不太确定如何处理,有一个_karma.conf.js文件

代码语言:javascript
复制
myapp@vagrant-ubuntu-trusty-64:/usr/lib/node_modules/generator-gulp-angular/app/templates$ ls
_bower.json      e2e          gulp          _.jshintrc      _package.json         src        tslint.json
coffeelint.json  _.gitignore  _gulpfile.js  _karma.conf.js  protractor.conf.js  _tsd.json

编辑

对于所有npm命令,我都必须使用sudo。这是正常的吗?

编辑2 https://github.com/Swiip/generator-gulp-angular/issues/470

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-04-05 17:08:05

根据github问题,删除app/files.json中对karma.conf.js的引用完成了工作。

我想总有一天会有一个正式的解决办法。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29459131

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档