pm2 icon indicating copy to clipboard operation
pm2 copied to clipboard

Install hangs behind corporate firewall on

Open okonon opened this issue 9 years ago • 13 comments

Hello, thanks for such a great tool! i am trying to install pm2 on a server that is behind corporate firewall and it hangs on this stage: Execute command npm i -g pm2:

fetchMetadata: sill resolveWithNewModule [email protected] checking installable status

Can you point me to right direction how to resolve this? no proxies are setup:

npm config get registry
https://registry.npmjs.org/
npm config get https-proxy
undefined
npm config get https-proxy
null

Supporting information

PM2 version: `N/A`
Node version: `v6.10.3`
RedHat 7

Thank you.

okonon avatar Jun 01 '17 16:06 okonon

I thought it was an npm issue but it appears that other packages are installing fine. I tried npm i -g npm and npm i -g ionic. So for some reason only npm i -g pm2 is hanging.

okonon avatar Jun 01 '17 17:06 okonon

@Unitech any chance you can point to right direction? Thanks a lot

okonon avatar Jun 01 '17 17:06 okonon

Try adding verbose, we can't help you with no logs

vmarchaud avatar Jun 01 '17 22:06 vmarchaud

I think this issue is on our side where firewall is blocking something

okonon avatar Jun 02 '17 14:06 okonon

What was the issue?

matthew-dean avatar Jun 21 '17 17:06 matthew-dean

Same issue, how did you solve it ?

samanmohamadi avatar Dec 09 '17 10:12 samanmohamadi

@matthew-dean @samanmohamadi I had to preform an off line installation of PM2 using npmbox https://github.com/arei/npmbox/blob/master/README.md

okonon avatar Dec 09 '17 18:12 okonon

same problem i have the latest version..cant install it :(

patriotaki avatar Jan 15 '18 20:01 patriotaki

I had the same issue and solved it: npm cache clean -f npm config get registry. For me it was https://registry.npmjs.org/ npm set registry http://registry.npmjs.org/

So by changing it from httpS to http I solved the problem.

Dscheksn avatar Jan 24 '18 16:01 Dscheksn

None of the solutions posted above have worked for me, turning off firewall doesn't work either. Other packages install successfully.

Here is my verbose output:

npm install pm2 -g
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm http fetch GET 304 http://registry.npmjs.org/pm2 159ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/async 89ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/mkdirp 45ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/blessed 210ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/chokidar 210ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/cli-table-redemption 211ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/commander 210ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/eventemitter2 209ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/chalk 213ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/cron 211ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/debug 215ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/fclone 214ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/moment 91ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/needle 78ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/nssocket 90ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/pidusage 92ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/pm2-axon 98ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/pm2-axon-rpc 106ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/pm2-deploy 111ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/pm2-multimeter 133ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/promptly 134ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/semver 120ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/pmx 155ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/shelljs 85ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/source-map-support 76ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/sprintf-js 73ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/v8-compile-cache 72ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/vizion 67ms (from cache)
npm http fetch GET 304 http://registry.npmjs.org/yamljs 56ms (from cache)
[..................] | fetchMetadata: http fetch GET 304 http://registry.npmjs.org/yamljs 56ms (from cache)

ANY help appreciated!

khrykin avatar Feb 25 '18 12:02 khrykin

OK, so my issue was basically #2700. npm install --g --no-optional pm2 worked.

khrykin avatar Feb 25 '18 12:02 khrykin

npm install --g --no-optional pm2 Worked thanks @khrykin

rameshelworthy avatar Aug 01 '18 06:08 rameshelworthy

FYI, rm -rf node_modules/ works for me.

Lellansin avatar Nov 14 '18 17:11 Lellansin