Actions

Packaging NPM

From HacDC Wiki

Revision as of 21:51, 25 February 2012 by Drwho (talk | contribs)
  • 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
    • 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