Very simple script to install node binary distributions on linux systems.
It doesn't mess with your environment at all. All it does is download node binaries where you tell it and switches between them.
Super simple and lightweight alternative for nvm.
Linux with standard tooling (wget).
Tested on debian. Not tested on Mac at all and likely won't work.
Just clone this repo somewhere.
mkdir -p ~/local cd ~/local git clone https://github.com/panta82/getnodebin.git cd getnodebin # execute commands described below
./install 10.0.0 # install 10.0.0 to ~/local ./install LTS # install whatever is the current LTS to ~/local sudo ./install current # install whatever is the current stable version to /usr/bin/local ./install lts ~/test # install current LTS to ~/test ./versions # list all installed versions ./activate 8.11.1 # activate previously installed version 8.11.1
Note that in order for unprivileged installations to work, you'll need to configure your PATH to include
If you are not sure what this means, open
~/.bashrc in your editor and add the following to the end of it:
Then restart your terminal.
Pretty stable so far. This is just a personal tool though, so...
USE AT YOUR OWN RISK!