凉亭安装角度多选模块中的错误

时间:2016-07-22 08:03:06

标签: angularjs node.js bower

我想安装bower angular-multiple-select但每次都会收到此错误,任何帮助

$ bower install --savev angular-multiple-select

 bower EACCES        EACCES, open      '/home/ali/.cache/bower/registry/bower.herokuapp.com/lookup/angular-  multiple-select_730ad'

> Stack trace: Error: EACCES, open
> '/home/ali/.cache/bower/registry/bower.herokuapp.com/lookup/angular-multiple-select_730ad'

> Console trace: Error
   >     at StandardRenderer.error           (/usr/lib/node_modules/bower/lib/renderers/StandardRenderer.js:81:37)
  >     at Logger.<anonymous>            (/usr/lib/node_modules/bower/lib/bin/bower.js:110:26)
  >     at Logger.emit (events.js:95:17)
at Logger.emit (/usr/lib/node_modules/bower/lib/node_modules/bower-   logger/lib/Logger.js:29:39)
at /usr/lib/node_modules/bower/lib/commands/index.js:48:20
at _rejected     (/usr/lib/node_modules/bower/lib/node_modules/q/q.js:844:24)
at   /usr/lib/node_modules/bower/lib/node_modules/q/q.js:870:30
at Promise.when (/usr/lib/node_modules/bower/lib/node_modules/q/q.js:1122:31)
at Promise.promise.promiseDispatch (/usr/lib/node_modules/bower/lib/node_modules/q/q.js:788:41)
at /usr/lib/node_modules/bower/lib/node_modules/q/q.js:604:44       System info: 
    Bower version: 1.7.9 
    Node version: 0.10.37 
    OS: Linux
    > 3.2.0-97-generic x64

谢谢,

1 个答案:

答案 0 :(得分:0)

您使用的是Linux吗?您可能需要使用sudo命令。即

sudo bower install --save angular-multiple-select