凉亭的错误信息

时间:2016-04-11 17:41:54

标签: angularjs node.js

我试图运行bower install --save angular-ui-calendar但是我得到了响应zsh:command not found:bower。那我跑吧 npm config set prefix / usr / local(有效) npm install -g bower(它给出了以下错误消息。) 非常感谢!

npm WARN checkPermissions Missing write access to /usr/local/lib
/usr/local/lib
└── bower@1.7.9
npm ERR! Linux 4.2.0-18-generic
npm ERR! argv "/usr/local/opt/nvm/versions/node/v4.2.1/bin/node"    "/usr/local/opt/nvm/versions/node/v4.2.1/bin/npm" "install" "-g" "bower"
npm ERR! node v4.2.1
npm ERR! npm  v3.5.2
npm ERR! path /usr/local/lib
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib'
npm ERR!     at Error (native)
npm ERR!  { [Error: EACCES: permission denied, access '/usr/local/lib']
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR!     /home/nitrous/FV/npm-debug.log

0 个答案:

没有答案