{"repo":"isaacs/nave","free":true,"listed":false,"github":"https://github.com/isaacs/nave","clone":"git clone https://github.com/isaacs/nave.git","description":"Virtual Environments for Node","language":"Shell","stars":1635,"topics":["nave","shell","subshell","node","nodejs","nvm","sea","zsh","versioning"],"license":"BlueOak-1.0.0","category":"cli-tools","readme_excerpt":"nave Virtual Environments for Node. Switch out your node version and global npm install space in one command. Supports named environments. Uses subshells by default so that you can ^D or exit out of an environment quickly. No need to edit .bashrc or .profile , just install and go. Installation If you want a global nave command, you could install this thing with npm. But that's not really necessary. You can run the nave.sh shell script from here, or symlink it wherever you want, or even just download the script and just put it where you want it. with npm If you have npm, presumably you already have Node, so it's a tiny bit silly, but maybe you like installing the top-level Node some other way, and install your subshell version switcher with npm. Why is a bash program in npm anyway? It's fine. Bits don't judge. Usage To use a version of node, you do this: If you want to name a virtual env, you can do this: If that virtual env doesn't already exist, it'll prompt you to choose a version. Both of these commands drop you into a subshell. Exit the shell with exit or ^D to go back from whence you came. Here's the full usage statement: Subshell-free operation If you prefer to not enter a subshell, just run nave with exec You could even add something like this to your .bashrc file to save on typing: Running shell script with specific version of Node.js If there is need to run a shell script with version of node.js provided by nave following snippet can be inserted into script: AUTOMAGI","default_branch":null,"files":null,"tree":[],"storefront":"/r/isaacs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/isaacs/nave/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}