Manually installing NPM packages


I used the node windows installer v0.8.3 to install nodejs. When I try to install express like this:

npm install express

It's not working. I think that is because my company is using a proxy, so I downloaded express from github, but I don't know how to install.

I unzip the file and put them in F/express/. Please help me? I'm on Windows

When I try to install from F:/express/ using the following commands

cd F:/express
npm install ./express


npm install .

I get the following error:

error: connect ETIMEDOUT
at errnoException (net.js:776:11)
at Object.afterConnect [as oncomplete] (net.js:767:19)

And when when I try to do

npm install F:/express

It shows

express@3.0.0beta7 prepublish F:/express/
npm prune

followed by lots of http get messages and then the same error

12/3/2014 9:21:09 AM

Accepted Answer

It would probably be most convenient long-term to configure NPM to use the aforementioned proxy through one of the following methods (In the following, replace $PROXY with your proxy in the form $PROTOCOL://$DOMAIN:$PORT (e.g. http://proxy.server:80))

A. Set the environment variables http_proxy and https_proxy to $PROXY


npm set proxy $PROXY
npm set https-proxy $PROXY
7/23/2012 3:32:19 AM

express itself has a lot of dependencies which I believe npm also tries to retrieve if you issue npm install. I think you should just configure proxy properly =>

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow