Install nvm (Node Version Manager)
1 | curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash |
If that fail, try manual install:
1 | git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags` |
Then add these lines to ~/.bashrc
, ~/profile
, or ~/.zshrc
: