Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


Virtual Environments for Node


If you want a global nave command, you could install this thing with npm. But that's not really necessary. You can run the shell script from here, or symlink it wherever you want.


Usage: nave <cmd>


  install <version>    Install the version passed (ex: 0.1.103)
  use <version>        Enter a subshell where <version> is being used
  use <ver> <program>  Enter a subshell, and run "node <program>", then exit
  usemain <version>    Install in /usr/local/bin
  clean <version>      Delete the source code for <version>
  uninstall <version>  Delete the install for <version>
  ls                   List versions currently installed
  ls-remote            List remote node versions
  ls-all               List remote and local node versions
  help                 Output help information

That's about it. Enjoy.

env vars

Check the $NAVE variable to see which version is being used. $NAVELVL tells you how many layers in you are. (A lot of nave use commands can create a nested situation. Not really sure what this would be useful for, though.)

When you're done using a specific version of node, just exit the shell to return to where you were before using nave.


nave borrows concepts, inspiration, and code from Tim Caswell's "nvm" and Kris Kowal's "sea" programs.

Sea is really nice, but is very tied to Narwhal. Also, it's a require.paths manager, which nave is not.

Nvm is also really nice, but has to be sourced rather than being run, and thus is a little bit wonky for some use cases. But it doesn't involve subshells, which makes it better for many others.

Something went wrong with that request. Please try again.