-
-
Save yortz/658191 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# | |
# node ---------------> ~/.nvm/<node-version>/bin/node | |
# node-libraries -----> ~/.node_libraries | |
# node-binaries ------> ~/.node_binaries | |
# | |
aptitude install g++ curl libssl-dev apache2-utils make | |
git clone git://github.com/creationix/nvm.git ~/.nvm | |
vi ~/.bashrc | |
NVM_DIR=$HOME/.nvm | |
. $NVM_DIR/nvm.sh | |
nvm use | |
nvm install v0.2.2 | |
nvm use v0.2.2 | |
mkdir ~/.node_libraries | |
mkdir ~/.node_binaries | |
git clone http://github.com/isaacs/npm.git tmpnpm | |
tmpnpm/cli.js install npm \ | |
--root ~/.node_libraries \ | |
--binroot ~/.node_binaries | |
rm -rf tmpnpm | |
npm config set root ~/.node_libraries | |
npm config set binroot ~/.node_binaries | |
npm install connect spark express jade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment