Installing node.js Packages From github

I had a situation the other day, where the cradle couchdb client from the npm repository was throwing an error like the one below:

require.paths is removed in latest node

After tracking down the issue, I needed a way to install the latest cradle code from github. This is how you do it, installing into the node_modules folder:

$ git clone<username>/cradle
$ npm remove cradle
$ npm install ./cradle

First you clone the cradle repository. This creates the /cradle folder. Second, you remove existing cradle package using npm. Lastly, you use npm again to install from a folder. Easy as pie!

5 comments on “Installing node.js Packages From github

Leave a Reply