Actions

Packaging NPM: Difference between revisions

From HacDC Wiki

No edit summary
No edit summary
Line 4: Line 4:
** '''tar xvfz /path/to/node-vx.y.z.tar.gz'''
** '''tar xvfz /path/to/node-vx.y.z.tar.gz'''
** '''cd node-vx.y.z'''
** '''cd node-vx.y.z'''
** '''./configure -p'''
** '''./configure -p --prefix=/usr'''
** '''make'''
** '''make'''
** '''make install DESTDIR=/tmp/nodejs-vx.y.z'''
** '''make install DESTDIR=/tmp/nodejs-vx.y.z'''

Revision as of 21:59, 25 February 2012

  • 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