Alex Rivera | Logout

How to install a node.js module without using npm?

Asked 2011-04-26T05:45:26.220
139

There are quite a few modules which are listed on node's github page but are not published with the npm-registry. These modules can't be installed using npm.

What is the correct way to install these nodejs modules after cloning them from Git?

Edit
Report

1 Answer

11

Download the code from github into the node_modules directory

var moduleName = require("<name of directory>")

that should do it.

if the module has dependancies and has a package.json, open the module and enter npm install.

Hope this helps

answered 2012-08-15T15:41:03.777

Your Answer