Running NPM behind proxy


(Markzolotoy) #1

What I Wanted to Do - npm install npm@latest -g

Before that I configured NPM to use Proxy server

What Happened Instead - I am getting an error. Here is a copy of the log:

0 info it worked if it ends with ok
1 verbose cli [ ‘C:\Program Files\nodejs\node.exe’,
1 verbose cli ‘C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js’,
1 verbose cli ‘install’,
1 verbose cli ‘npm@latest’,
1 verbose cli ‘-g’ ]
2 info using npm@6.4.1
3 info using node@v10.10.0
4 verbose npm-session 873d4ccca75e1990
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 timing npm Completed in 722ms
8 error cb() never called!
9 error This is an error with npm itself. Please report this error at:
10 error https://npm.community

Reproduction Steps

Details

Platform Info

$ npm --versions
npm: '6.4.1',
  ares: '1.14.0',
  cldr: '33.1',
  http_parser: '2.8.0',
  icu: '62.1',
  modules: '64',
  napi: '3',
  nghttp2: '1.33.0',
  node: '10.10.0',
  openssl: '1.1.0i',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.23.0',
  v8: '6.8.275.30-node.24',
  zlib: '1.2.11' }
$ node -p process.platform
win32