Packaging NPM
From HacDC Wiki
- Ensure that node.js is installed and operable.
- Download the latest .tar.gz tarball of the node.js source code.
- cd /tmp
- tar xvfz /path/to/node-vx.y.z.tar.gz
- cd node-vx.y.z
- ./configure -p --prefix=/usr
- make
- make install DESTDIR=/tmp/nodejs-vx.y.z
- Download npm: wget http://npmjs.org/install.sh
- mv install.sh npm-install.sh
- sh ./npm-install.sh (as root)
- Everything goes in /usr/lib/mode_modules/npm
- /usr/bin/npm* symlinked to /usr/lib/mode_modules/npm/bin/npm.js