This looks like npm is trying to set up a tunneling proxy (SOCKS) instead 
of an HTTP Proxy.
If you setup your env to export HTTP_PROXY=http://myproxy.net and 
HTTPS_PROXY=https://myproxy.net npm should detect them and use them. at 
least it did when I last tried.

On Wednesday, 3 July 2013 10:49:00 UTC+2, Dragos Iosif wrote:
>
> Hello,
>
> I am new to node.js but I would like to have Grunt installed on the 
> machine at work. The problem is, that I cannot install any module.
> I am using a proxy and have set the proxy with the *npm config set proxy 
> http://my.proxy *as well as the https proxy, but I got the following 
> error:
>
> http GET https://registry.npmjs.org/grunt-cli
> silly lockFile d63f3d0b-grunt-cli grunt-cli@
> silly lockFile d63f3d0b-grunt-cli grunt-cli@
> error Error: tunneling socket could not be established, cause=Parse Error
> error     at ClientRequest.onError (C:\Program 
> Files\nodejs\node_modules\npm\node_modules\request\node_modules\tunnel-agent\index.js:159:17)
> error     at ClientRequest.g (events.js:175:14)
> error     at ClientRequest.EventEmitter.emit (events.js:95:17)
> error     at Socket.socketOnData (http.js:1558:9)
> error     at TCP.onread (net.js:525:27)
>
> As some people have suggested, I have changed the repository to 
> *http://registry.npmjs.org/grunt-cli* but now I get a 404 Not Found error.
>
> What am I doing wrong? 
> Can you please tell me how to fix this?
>
>
>
>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to