Medium / phantomjs

NPM wrapper for installing phantomjs
Other
1.42k stars 436 forks source link

Issue running npm install from behind firewall #822

Closed conorjohn closed 5 years ago

conorjohn commented 5 years ago

Hey, I've got an issue running npm install from behind the firewall. Right now the error is on phantomjs because it's pulling from GitHub, but it was happening with all npm packages first until I ran npm config set registry http://registry.npmjs.org

This is the error that it is logging out now, very similar to the error I was getting for the npm package issue. I think I just need to set an accepted registry like I did before but I'm not sure what URL that would be. Any ideas on how I could fix this issue?

`PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-windows.zip
Receiving...

Error making request.
Error: unable to get local issuer certificate
at TLSSocket.onConnectSecure (_tls_wrap.js:1051:34)
at TLSSocket.emit (events.js:189:13)
at TLSSocket._finishInit (_tls_wrap.js:633:8)

Please report this full log at https://github.com/Medium/phantomjs
npm WARN pmv-conversational-demo@1.0.0 No description
npm WARN pmv-conversational-demo@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! phantomjs-prebuilt@2.1.16 install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.16 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\conor.oreilly\AppData\Roaming\npm-cache_logs\2019-03-21T15_16_38_014Z-debug.log`