本文介绍了Bower 安装 EACCES 错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 StackOverflow & 上阅读了一些答案其他一些网站,但似乎都没有解决我遇到的问题.
I've read a few answers on StackOverflow & some other sites but none seem to fix the issue I'm having.
我正在通过终端安装 AppGyver 附加组件.收到以下错误:
I'm installing AppGyver Add-ons, via terminal. Getting the following error:
BradMacBookPro:SparksInSpain breadadams$ bower install https://##MY-DOWNLOAD-CODE##@addons.appgyver.com/steroids-addons.js?version=3.1.0 --save
bower not-cached https://##MY-DOWNLOAD-CODE##@addons.appgyver.com/steroids-addons.js?version=3.1.0#*
bower resolve https://##MY-DOWNLOAD-CODE##@addons.appgyver.com/steroids-addons.js?version=3.1.0#*
bower download https://##MY-DOWNLOAD-CODE##@addons.appgyver.com/steroids-addons.js?version=3.1.0
bower EACCES EACCES, mkdir '/Users/breadadams/.cache/bower/packages/7480e059b318750565b4b25c2556c9c4'
Stack trace:
Error: EACCES, mkdir '/Users/breadadams/.cache/bower/packages/7480e059b318750565b4b25c2556c9c4'
Console trace:
Trace
at StandardRenderer.error (/usr/local/lib/node_modules/bower/lib/renderers/StandardRenderer.js:74:17)
at Logger.updateNotifier.packageName (/usr/local/lib/node_modules/bower/bin/bower:109:18)
at Logger.EventEmitter.emit (events.js:95:17)
at Logger.emit (/usr/local/lib/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
at /usr/local/lib/node_modules/bower/lib/commands/install.js:27:16
at _rejected (/usr/local/lib/node_modules/bower/node_modules/q/q.js:808:24)
at /usr/local/lib/node_modules/bower/node_modules/q/q.js:834:30
at Promise.when (/usr/local/lib/node_modules/bower/node_modules/q/q.js:1079:31)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/bower/node_modules/q/q.js:752:41)
at /usr/local/lib/node_modules/bower/node_modules/q/q.js:574:44
System info:
Bower version: 1.2.8
Node version: 0.10.25
OS: Darwin 13.1.0 x64
我不是 sudo,我试过 --allow-root,清理了 bower 缓存,安装时总是遇到同样的错误.一些本地权限问题?
I'm not sudo, I've tried --allow-root, cleaned the bower cache, always get the same error on install. Some local permission problem?
推荐答案
我遇到了类似的问题,但使用这些建议无法解决.当我以 root 权限运行 Bower 时,我成功了,如下所示:
I had a similar issue that I couldn't resolve using these suggestions. I was successful when I ran Bower with root privileges, like so:
sudo bower install --allow-root
这篇关于Bower 安装 EACCES 错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!