用yo安装angularjs yo,报权限禁止是什么原因

yo angular报错,有截图
ubuntu系统。最后卡在这一步了手动退出,看到有生成错误日志错误日志一万多行,也不知说的啥感觉好摸瞎啊。
写下你的评论...
我问题解决了。不过记不得是怎么解决的了。
我这个问题不是权限问题,我在这之前有个很壮观的报错,那个是权限问题,我用这个解决了;
sudo chown -R 我自己:我自己 ~/.npm
好像是没有装sass,compass?还是咋的? 好像是装了之后解决了,生成过程有用符号表示的进度条了,没有错误日志了。
不过真的记不清了,这几天问题太多了,记得装ruby后装sass,conpass还各种报错……(最后知道要装的是ruby-full而不是ruby,好像还要把gem换成淘宝的镜像地址……)
写下你的评论...
Copyright (C)
All Rights Reserved | 京ICP备 号-2Angular(15)
今天在封装一个Jquery插件的时候,在用jquery处理绑定事件时需要访问scope去更新绑定model的值,&span style=&font-size:32color:#ff0000;&&使用$.proxy在将事件的上下文改为scope。&/span&代码如下:
commonDirective.directive('commonDate', function() {
var defaultUrl = MONDIRECTIVE.PATH + 'commonDate.html';
templateUrl : function(elem, attrs) {
return attrs.myTemplateUrl || defaultU
placeholder : '@myPlaceholder',
model : '=myModel'
replace : true,
link : function(scope, element, attrs, ctrl) {
$(element).closest('.input-group').datepicker({
todayBtn : true,
clearBtn : true,
language : &zh-CN&,
orientation : &top auto&,
calendarWeeks : true,
autoclose : true,
todayHighlight : true
&span style=&color:#cc0000;&&
$(element).closest('.input-group').on('changeDate', $.proxy(function(event) {&/span&
this.model = event.date.Format('yyyy年MM月dd日');
this.$apply();
}, scope));
controller : function($scope, $element, $attrs, $http) {
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:34332次
积分:1011
积分:1011
排名:千里之外
原创:56篇
转载:77篇
(1)(1)(2)(1)(4)(2)(5)(12)(1)(7)(10)(5)(11)(6)(12)(3)(6)(4)(9)(17)(14)(1)老师您好,我在安装generator-angular的时候遇到问题
我用的是MacBook,当我执行:sudo npm install -g generator-angular的时候,就会出现下面的错误提示:npm WARN peerDependencies The peer dependency generator-karma@&=0.9.0 included from generator-angular will nonpm WARN peerDependencies longer be automatically installed to fulfill the peerDependency npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.npm WARN peerDependencies The peer dependency yo@&=1.0.0 included from generator-angular will nonpm WARN peerDependencies longer be automatically installed to fulfill the peerDependency npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.我去google了一下,有些人也碰到了和我差不多的问题,有些是uninstall 了generatro-karma,我也试了试,结果依然不行。老师,您也碰到过类似的问题吗,您是如果解决的?谢谢。
10235 浏览
非常感谢!
npm install -gd generator-angular
写下你的评论...
写下你的评论...
写下你的评论...
写下你的评论...
写下你的评论...
那个超帅的芬兰小哥 是哪个?能给个github地址吗。的确只是提示
写下你的评论...
yo --version
试过了,同样不管用,还是选择生成器
yo --version
写下你的评论...
写下你的评论...
写下你的评论...
写下你的评论...
Copyright (C)
All Rights Reserved | 京ICP备 号-2}

我要回帖

更多关于 yo angular generator 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信