Created
October 23, 2010 17:39
-
-
Save mbbx6spp/642476 to your computer and use it in GitHub Desktop.
Install user based NodeJS Pakcage Manager (NPM). You might also want to see the RPM spec for NodeJS if you are running an RPM based Linux distro for a clean NodeJS install too: http://gist.github.com/635036
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
CURL=$(which curl) | |
NPM_DIR=${HOME}/.npmjs | |
mkdir -p ${NPM_DIR}/{bin,share/man,packages} | |
cat >>${HOME}/.npmrc <<NPMRC | |
root = ${NPM_DIR}/packages | |
binroot = ${NPM_DIR}/bin | |
manroot = ${NPM_DIR}/share/man | |
NPMRC | |
$CURL http://npmjs.org/install.sh | sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just remember to add ${HOME}/.npmjs/bin to your $PATH. Usually something like:
PATH=${PATH}:${HOME}/.npmjs/bin