Medium / phantomjs

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

tunneling socket could not be established #781

Closed kolomu closed 6 years ago

kolomu commented 6 years ago

(I'm behind a proxy)

C:\Users\myusername\Desktop\http_toh>npm install phantomjs-prebuilt

phantomjs-prebuilt@2.1.16 install C:\Users\myusername\Desktop\http_toh\node_modules\phantomjs-prebuilt node install.js

Considering PhantomJS found at C:\Users\myusername\AppData\Roaming\npm\phantomjs.CMD Looks like an npm install -g on windows; skipping installed version. Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-windows.zip Saving to C:\TEMP\phantomjs\phantomjs-2.1.1-windows.zip Using proxy http://corporateproxy... Receiving...

Error making request. Error: tunneling socket could not be established, statusCode=407 at ClientRequest.onConnect (C:\Users\myusername\Desktop\http_toh\node_modules\tunnel-agent\index.js:166:19) at Object.onceWrapper (events.js:254:19) at ClientRequest.emit (events.js:159:13) at Socket.socketOnData (_http_client.js:471:11) at Socket.emit (events.js:159:13) at addChunk (_stream_readable.js:265:12) at readableAddChunk (_stream_readable.js:252:11) at Socket.Readable.push (_stream_readable.js:209:10) at TCP.onread (net.js:608:20)

Please report this full log at https://github.com/Medium/phantomjs npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: 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.