Skip to content

Instantly share code, notes, and snippets.

@meganlkm
Created July 10, 2015 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meganlkm/f1bc67ba3546ddaecd38 to your computer and use it in GitHub Desktop.
Save meganlkm/f1bc67ba3546ddaecd38 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# installs node into a python virtualenv
# dependencies: pip, virtualenv, virtualenvwrapper
#
# install dependencies:
# sudo easy_install pip
# sudo pip install virtualenv virtualenvwrapper
#
# Usage: mknodeenv myproject
function mknodeenv() {
myprj=$@
mkproject $myprj
source ${WORKON_HOME}/${myprj}/bin/activate
pip install nodeenv
nodeenv -p
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment