0
這是安裝的Node.js和涼亭後,我的CLI權限怎麼去執行涼亭中安裝jQuery
Xxxxxxx-MacBook-Pro:gumbyFor xxxxxxx$ bower install jquery
bower EACCES
EACCES, open '/Users/xxxxxxxx/.cache/bower/registry/bower.herokuapp.com/lookup/jquery_d223e'
Stack trace:
Error: EACCES, open '/Users/xxxxxxxx/.cache/bower/registry/bower.herokuapp.com/lookup/jquery_d223e'
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.22
OS: Darwin 13.0.0 x64
我怎樣才能把它安裝權限,因爲我有嘗試: sudo bower install jquery
和sudo bower cache clean --allow-root
它仍然不起作用
謝謝我通過使用'sudo涼亭安裝jquery --allow-root'解決了這個問題 –
您的評論只是幫助我,但這個解決方案是一個笑話。 – LoveAndHappiness