Skip to content

Instantly share code, notes, and snippets.

@gu-stav
Last active August 29, 2015 14:14
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 gu-stav/e907a9a6aba7efbcc6a8 to your computer and use it in GitHub Desktop.
Save gu-stav/e907a9a6aba7efbcc6a8 to your computer and use it in GitHub Desktop.
Note, how to install io.js and node alongside. It also covers, how to install global npm modules, without changing the ownership of /usr/local

Install node.js & io.js using nvm

brew install nvm
nvm install iojs

# .zshrc
export NVM_DIR=$(brew --prefix)/var/nvm
source $(brew --prefix nvm)/nvm.sh

# Now iojs -v, node-v should print the latest iojs version

Install npm global packages without root permissions

npm config set prefix ~/npm

# .zshrc
export PATH="$PATH:$HOME/npm/bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment