Hello There, I am getting the following error when using 'npm'. Specifically i was using npm to install db-mysql. Any info on how to resolve this would be of great help.
Log
info it worked if it ends with ok verbose cli [ 'node', '/usr/local/bin/npm', 'install', 'db-mysql' ] info using n...@1.1.12 info using n...@v0.6.0 verbose config file /home/shiv/.npmrc verbose config file /usr/local/etc/npmrc verbose config file /usr/local/lib/node_modules/npm/npmrc verbose cache add [ 'db-mysql', null ] silly cache add: name, spec, args [ undefined, 'db-mysql', [ 'db-mysql', null ] ] verbose parsed url { pathname: 'db-mysql', path: 'db-mysql', href: 'db-mysql' } verbose addNamed [ 'db-mysql', '' ] verbose addNamed [ null, '' ] silly name, range, hasData [ 'db-mysql', '', false ] verbose raw, before any munging db-mysql verbose url resolving [ 'https://registry.npmjs.org/', './db-mysql' ] verbose url resolved https://registry.npmjs.org/db-mysql http GET https://registry.npmjs.org/db-mysql ERR! Error: tunneling socket could not be established, cause=socket hang up ERR! at ClientRequest.onError (/usr/local/lib/node_modules/npm/node_modules/request/tunnel.js:161:17) ERR! at ClientRequest.g (events.js:154:14) ERR! at ClientRequest.emit (events.js:67:17) ERR! at CleartextStream.<anonymous> (http.js:1175:13) ERR! at CleartextStream.emit (events.js:64:17) ERR! at Array.0 (tls.js:731:22) ERR! at EventEmitter._tickCallback (node.js:192:40) ERR! You may report this log at: ERR! <http://github.com/isaacs/npm/issues> ERR! or email it to: ERR! <npm-@googlegroups.com> ERR! ERR! System Linux 2.6.35-30-generic ERR! command "node" "/usr/local/bin/npm" "install" "db-mysql" ERR! cwd /home/shiv ERR! node -v v0.6.0 ERR! npm -v 1.1.12 ERR! code ECONNRESET ERR! message tunneling socket could not be established, cause=socket hang up ERR! errno {} verbose exit [ 1, true ]
Trying to install "everyauth" now. Keep getting the same error "tunneling socket could not be established, cause=connect ECONNREFUSED". this is with node 0.6.14 now. Any help is greatly appreciated.
This worked now. The only difference is that i am now connected via Ethernet, was using a wifi earlier. This error seems random. It might help to note that i am using vmware.
Regards, Shiv
On Tue, Mar 27, 2012 at 2:19 PM, Shiv Prashant Sood
<shivprash...@gmail.com> wrote: > Hello There, > I am getting the following error when using 'npm'. Specifically i > was using npm to install db-mysql. Any info on how to resolve this > would be of great help.
> Log
> info it worked if it ends with ok > verbose cli [ 'node', '/usr/local/bin/npm', 'install', 'db-mysql' ] > info using n...@1.1.12 > info using n...@v0.6.0 > verbose config file /home/shiv/.npmrc > verbose config file /usr/local/etc/npmrc > verbose config file /usr/local/lib/node_modules/npm/npmrc > verbose cache add [ 'db-mysql', null ] > silly cache add: name, spec, args [ undefined, 'db-mysql', [ > 'db-mysql', null ] ] > verbose parsed url { pathname: 'db-mysql', path: 'db-mysql', href: 'db-mysql' } > verbose addNamed [ 'db-mysql', '' ] > verbose addNamed [ null, '' ] > silly name, range, hasData [ 'db-mysql', '', false ] > verbose raw, before any munging db-mysql > verbose url resolving [ 'https://registry.npmjs.org/', './db-mysql' ] > verbose url resolved https://registry.npmjs.org/db-mysql > http GET https://registry.npmjs.org/db-mysql > ERR! Error: tunneling socket could not be established, cause=socket hang up > ERR! at ClientRequest.onError > (/usr/local/lib/node_modules/npm/node_modules/request/tunnel.js:161:17) > ERR! at ClientRequest.g (events.js:154:14) > ERR! at ClientRequest.emit (events.js:67:17) > ERR! at CleartextStream.<anonymous> (http.js:1175:13) > ERR! at CleartextStream.emit (events.js:64:17) > ERR! at Array.0 (tls.js:731:22) > ERR! at EventEmitter._tickCallback (node.js:192:40) > ERR! You may report this log at: > ERR! <http://github.com/isaacs/npm/issues> > ERR! or email it to: > ERR! <npm-@googlegroups.com> > ERR! > ERR! System Linux 2.6.35-30-generic > ERR! command "node" "/usr/local/bin/npm" "install" "db-mysql" > ERR! cwd /home/shiv > ERR! node -v v0.6.0 > ERR! npm -v 1.1.12 > ERR! code ECONNRESET > ERR! message tunneling socket could not be established, cause=socket hang up > ERR! errno {} > verbose exit [ 1, true ]
Hi, Even i was getting this error while installing socket.io using npm. I have been stuck for 3 days coz of this issue, Any help really appreciated.
npm http GET https://registry.npmjs.org/socket.io-client/0.9.9 npm http GET https://registry.npmjs.org/policyfile/0.0.4 npm http GET https://registry.npmjs.org/redis/0.7.2 npm http GET https://registry.npmjs.org/socket.io-client/0.9.9 npm http GET https://registry.npmjs.org/redis/0.7.2 npm http GET https://registry.npmjs.org/policyfile/0.0.4 npm http GET https://registry.npmjs.org/redis/0.7.2 npm http GET https://registry.npmjs.org/socket.io-client/0.9.9 npm http GET https://registry.npmjs.org/policyfile/0.0.4 npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'C:\Program Files (x86)\node js\node_modules\npm\node_modules\socket.io' npm ERR! error rolling back socket...@0.9.9 { [Error: ENOTEMPTY, rmdir 'C:\Prog ram Files (x86)\nodejs\node_modules\npm\node_modules\socket.io'] npm ERR! error rolling back errno: 53, npm ERR! error rolling back code: 'ENOTEMPTY', npm ERR! error rolling back path: 'C:\\Program Files (x86)\\nodejs\\node_modul es\\npm\\node_modules\\socket.io' } npm ERR! Error: tunneling socket could not be established, cause=connect ECONNRE FUSED npm ERR! at ClientRequest.onError (C:\Program Files (x86)\nodejs\node_module s\npm\node_modules\request\tunnel.js:161:17) npm ERR! at ClientRequest.g (events.js:185:14) npm ERR! at ClientRequest.EventEmitter.emit (events.js:88:17) npm ERR! at Socket.socketErrorListener (http.js:1320:9) npm ERR! at Socket.EventEmitter.emit (events.js:88:17) npm ERR! at Socket._destroy.self.errorEmitted (net.js:335:14) npm ERR! at process.startup.processNextTick.process._tickCallback (node.js:2 44:9) npm ERR! If you need help, you may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! <npm-@googlegroups.com>
npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" ".\\socket.io" npm ERR! cwd C:\Program Files (x86)\nodejs\node_modules\npm\node_modules npm ERR! node -v v0.8.4 npm ERR! npm -v 1.1.45 npm ERR! code ECONNRESET npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-deb ug.log npm ERR! not ok code 0
On Tuesday, 27 March 2012 14:32:23 UTC+5:30, shiv wrote:
> Hello There, > I am getting the following error when using 'npm'. Specifically i > was using npm to install db-mysql. Any info on how to resolve this > would be of great help.
> Log
> info it worked if it ends with ok > verbose cli [ 'node', '/usr/local/bin/npm', 'install', 'db-mysql' ] > info using n...@1.1.12 > info using n...@v0.6.0 > verbose config file /home/shiv/.npmrc > verbose config file /usr/local/etc/npmrc > verbose config file /usr/local/lib/node_modules/npm/npmrc > verbose cache add [ 'db-mysql', null ] > silly cache add: name, spec, args [ undefined, 'db-mysql', [ > 'db-mysql', null ] ] > verbose parsed url { pathname: 'db-mysql', path: 'db-mysql', href: > 'db-mysql' } > verbose addNamed [ 'db-mysql', '' ] > verbose addNamed [ null, '' ] > silly name, range, hasData [ 'db-mysql', '', false ] > verbose raw, before any munging db-mysql > verbose url resolving [ 'https://registry.npmjs.org/', './db-mysql' ] > verbose url resolved https://registry.npmjs.org/db-mysql > http GET https://registry.npmjs.org/db-mysql > ERR! Error: tunneling socket could not be established, cause=socket hang up > ERR! at ClientRequest.onError > (/usr/local/lib/node_modules/npm/node_modules/request/tunnel.js:161:17) > ERR! at ClientRequest.g (events.js:154:14) > ERR! at ClientRequest.emit (events.js:67:17) > ERR! at CleartextStream.<anonymous> (http.js:1175:13) > ERR! at CleartextStream.emit (events.js:64:17) > ERR! at Array.0 (tls.js:731:22) > ERR! at EventEmitter._tickCallback (node.js:192:40) > ERR! You may report this log at: > ERR! <http://github.com/isaacs/npm/issues> > ERR! or email it to: > ERR! <npm-@googlegroups.com> > ERR! > ERR! System Linux 2.6.35-30-generic > ERR! command "node" "/usr/local/bin/npm" "install" "db-mysql" > ERR! cwd /home/shiv > ERR! node -v v0.6.0 > ERR! npm -v 1.1.12 > ERR! code ECONNRESET > ERR! message tunneling socket could not be established, cause=socket hang > up > ERR! errno {} > verbose exit [ 1, true ]