Skip to content

Instantly share code, notes, and snippets.

@mcantelon
Created September 26, 2010 00:37
Show Gist options
  • Save mcantelon/597451 to your computer and use it in GitHub Desktop.
Save mcantelon/597451 to your computer and use it in GitHub Desktop.
# configure npm
touch ~/.npmrc
echo root=$HOME/root >> ~/.npmrc
echo binroot=$HOME/bin >> ~/.npmrc
echo manroot=$HOME/man >> ~/.npmrc
mkdir $HOME/root
mkdir $HOME/bin
mkdir $HOME/man
# install npm
http://github.com/isaacs/npm.git
cd npm
make dev
# let node know where npm installs live (add to ~/.bashrc)
export NODE_PATH=$HOME/root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment