错误安装Bower

时间:2016-08-11 08:33:52

标签: bower

我是Wira而我是新手 所以最近我尝试在我的笔记本电脑上安装bower,并且有一些错误:

C:\Users\wiraxie>npm install g- bower
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
node_modules\\npm\\bin\\npm-cli.js" "install" "g-" "bower"
npm ERR! node v4.4.7
npm ERR! npm  v2.15.8
npm ERR! code EACCES
npm ERR! errno EACCES
npm ERR! syscall connect

npm ERR! Error: connect EACCES 151.101.76.162:443
npm ERR!     at Object.exports._errnoException (util.js:873:11)
npm ERR!     at exports._exceptionWithHostPort (util.js:896:20)
npm ERR!     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1077:14)
npm ERR!  { [Error: connect EACCES 151.101.76.162:443]
npm ERR!   code: 'EACCES',
npm ERR!   errno: 'EACCES',
npm ERR!   syscall: 'connect',
npm ERR!   address: '151.101.76.162',
npm ERR!   port: 443 }
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!     C:\Users\wiraxie\npm-debug.log

任何人都可以帮助我吗? 在此先感谢:)

1 个答案:

答案 0 :(得分:0)

使用

安装凉亭
npm install -g bower

并确保 run the Command Prompt as an Administrator