0

I am not able to install packages using npm. I keep getting error shown in below image. enter image description here

Using link1, link2, link3 I uninstalled nodejs. After installing the nodejs again, when I run npm config ls command, I can still see proxy details which I added earlier.

How can I ensure that when I uninstall nodejs it also removes all the config files.

Community
  • 1
  • 1
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
  • uninstaling node doesn't do anything to npm, since it is an own package. you should check the files as in https://www.npmjs.org/doc/misc/npm-config.html#npmrc-Files and remove your setting there – greelgorke Apr 23 '14 at 09:44

1 Answers1

0

I was setting proxy as

npm config set http_proxy=http://myproxy address:8080

which is wrong now I use

npm config set proxy http://myproxy address:8080

and I am able to install packages.

SharpCoder
  • 18,279
  • 43
  • 153
  • 249