angularjs – ngCordova凉亭错误 – 任何想法如何解决?
发布时间:2020-12-17 17:41:22 所属栏目:安全 来源:网络整理
导读:我试图确保我使用的是最新版本,因为我的ngCordova媒体插件因某些原因无法使用. 我收到此错误: npm WARN locking Error: EACCES,open '/Users/SubjectiveEffect/.npm/_locks/bower-e8debc5417026b57.lock'npm WARN locking at Error (native)npm WARN lockin
我试图确保我使用的是最新版本,因为我的ngCordova媒体插件因某些原因无法使用.
我收到此错误: npm WARN locking Error: EACCES,open '/Users/SubjectiveEffect/.npm/_locks/bower-e8debc5417026b57.lock' npm WARN locking at Error (native) npm WARN locking /Users/SubjectiveEffect/.npm/_locks/bower-e8debc5417026b57.lock failed { [Error: EACCES,open '/Users/SubjectiveEffect/.npm/_locks/bower-e8debc5417026b57.lock'] npm WARN locking errno: -13,npm WARN locking code: 'EACCES',npm WARN locking path: '/Users/SubjectiveEffect/.npm/_locks/bower-e8debc5417026b57.lock' } npm ERR! Darwin 14.5.0 npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "bower" npm ERR! node v0.12.7 npm ERR! npm v2.11.3 npm ERR! Attempt to unlock /usr/local/lib/node_modules/bower,which hasn't been locked npm ERR! npm ERR! If you need help,you may report this error at: npm ERR! <https://github.com/npm/npm/issues> npm ERR! Please include the following file with any support request: npm ERR! /Users/SubjectiveEffect/myApp/npm-debug.log 我不知道如何解决这个问题. 任何想法? 编辑:我做了一些整理,卸载和重新安装.当我尝试“bower install ngCordova”时,我现在收到此错误 "bower cached git://github.com/driftyco/ng-cordova.git#0.1.12-alpha bower validate 0.1.12-alpha against git://github.com/driftyco/ng-cordova.git#* bower ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/driftyco/ng-cordova.git",exit code of #69 Agreeing to the Xcode/iOS license requires admin privileges,please re-run as root via sudo. Additional error details: Agreeing to the Xcode/iOS license requires admin privileges,please re-run as root via sudo." 但如果我尝试用sudo运行它,我会被告知: "bower ESUDO Cannot be run with sudo Additional error details: Since bower is a user command,there is no need to execute it with superuser permissions. If you're having permission errors when using bower without sudo,please spend a few minutes learning more about how your system should work and make any necessary repairs." 有任何想法吗? 解决方法
该错误表明接受Xcode / iOS许可协议的问题,这是cordova的依赖(使iOS仿真工作).
我想Xcode已经由npm / bower安装了,你只需要第一次打开它(Cmd-Space,然后键入Xcode)接受许可协议,然后重新运行bower安装ngCordova. 如果尚未安装Xcode,则手动安装可能不那么麻烦(详见here),打开一次并重新运行bower install ngCordova. BTW,ilj是对的,在sudo下运行npm或bower通常是一种不好的做法.这导致了各种各样的蠕虫罐. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- scala – SBT:我可以基于另一个动态添加库依赖项吗?
- RMI、Hessian、Burlap、Httpinvoker、WebService的比较
- 为什么class <:<[ - From,To]需要在scala标准库中扩展(Fr
- bash – 如何确定某个私钥是否创建了OpenSSL证书?
- bootstrap学习30--javascript插件--modal dialog
- angularjs – 在输入焦点上选择文本
- Scala和类型绑定给定的操作
- [Bootstrap] How to use bootstrap in your application?
- scala – 如何捕获重复的键值违例的slick postgres异常
- 如何使用bash替换在列表的每个元素的末尾附加换行符