错误安装Bower(Error Install 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谁能帮我? 提前致谢 :)
I'm Wira and I'm a newbie So recently i tried to install bower on my laptop and there are some errors like this:
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.logCan Anyone help me? Thanks in advance :)
最满意答案
安装凉亭
npm install -g bower并确保以管理员身份运行命令提示符
Install bower with
npm install -g bowerand make sure your run the Command Prompt as an Administrator
更多推荐
发布评论