Actions

Packaging NPM: Difference between revisions

From HacDC Wiki

(Created page with "* Ensure that node.js module is enabled. * Download npm: wget http://npmjs.org/install.sh * mv install.sh npm-install.sh * sh ./npm-install.sh (as root) * Everything goes in /usr...")
 
No edit summary
Line 1: Line 1:
* Ensure that node.js module is enabled.
* Ensure that [http://nodejs.org/ node.js] is installed and operable.
* Download npm: wget http://npmjs.org/install.sh
** Download the latest .tar.gz tarball of the node.js source code.
* mv install.sh npm-install.sh
** '''cd /tmp'''
* sh ./npm-install.sh (as root)
** '''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
* Everything goes in /usr/lib/mode_modules/npm
* /usr/bin/npm* symlinked to /usr/lib/mode_modules/npm/bin/npm.js
* /usr/bin/npm* symlinked to /usr/lib/mode_modules/npm/bin/npm.js

Revision as of 21:51, 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
    • 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