简体   繁体   中英

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.

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

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

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM