After many research about this problem and test more than 10 solutions like set with this commands:
npm config set proxy "http://domain%5Cusername:password@servername:port/"
but not worked for me.
then test CNTLM but CNTLM didn't work for me. I tried all possible combinations. NPM was giving Authentication error.
finally i test Fiddler and saved my time. It is easy to install and configure. Open Fiddler => Rule => Automatically Authenticated.
Open C:Usersyour username.npmrc file and use this configurations
registry=http://registry.npmjs.org
proxy=http://127.0.0.1:8888
https-proxy=http://127.0.0.1:8888
http-proxy=http://127.0.0.1:8888
strict-ssl=true
remove npm folder in this path C:Usersyour usernameAppDataRoaming.
Using following command:
npm install express
npm uninstall -g @angular/cli
npm cache clean --force
npm install -g @angular/cli
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…