Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 https://github.com/visionmedia/express, 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

or

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

[email protected] prepublish F:/express/
npm prune

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

like image 331
paynestrike Avatar asked Jul 23 '12 02:07

paynestrike


1 Answers

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 => http://jjasonclark.com/how-to-setup-node-behind-web-proxy?

like image 79
Alfred Avatar answered Sep 27 '22 23:09

Alfred