Category Archives: npm

Understanding npm module installation

npm will install packages locally, in ./node_modules. So if you are in /home/foo: user@host:/home/foo$ npm install Haraka Haraka will be installed in /home/foo/node_modules/Haraka. If you want to install a module globally (by default in /usr/local/lib/node_modules), supply the -g switch: user@host:/home/foo$ … Continue reading

Posted in Node.js, npm | Leave a comment

Setting up a private NPM repository

Sometimes it might be a good idea to create a local copy of the npm repository. The following steps enable creation of such a local repository. The npm repository uses a couchDB database. You’ll need to install couchDB 1.1.0 or … Continue reading

Posted in npm | Tagged , | 6 Comments