Setup node.js environment

$ git clone https://github.com/creationix/nvm.git ~/.nvm
$ echo '. ~/.nvm/nvm.sh' >> ~/.bash_profile
$ source ~/.bash_profile

$ nvm install v0.6.15

$ nvm alias default v0.6.15

$ npm config set registry http://registry.npmjs.org/
$ npm install -g \
    coffee-script \
    ejs \
    express \
    jade \
    js2coffee \
    mongodb \
    mongoose \
    mysql \
    node-dev \
    redis \
    socket.io

$ npm link ${package_name}

Share this

Related Posts