[英]npm can't install packages in a windows terminal
I try to work with node js ,when i run the command >npm install express ,i'm logging in the terminal as an administrator in windows, it cannot install packages. 我尝试使用node js,当我运行命令> npm install express时,我以Windows中的管理员身份登录终端,因此无法安装软件包。
I have this error on terminal after running the previous command: 运行上一条命令后,终端上出现此错误:
[..................] / rollbackFailedOptional: verb npm-session
xxxxxxxxxxxxx
I need some help please,i have no experience in node js developping.
ps:I have a connection wifi behind a proxy ps:我在代理后面有连接wifi
informations proxy:
hostname:23.11.201.32
user:ensias-tp
password:xxxxxxxx
port number:2342
What commands that i use to configure the proxy? 我用来配置代理的命令是什么?
Open the .npmrc file 打开.npmrc文件
npm config edit
Check the following values: 检查以下值:
proxy=http://user:passsword@host.domain.com:port/
https-proxy=http://user:passsword@host.domain.com:port/
strict-ssl=false
registry=http://registry.npmjs.org/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.