diff --git a/README.md b/README.md index d384b05..9e87261 100644 --- a/README.md +++ b/README.md @@ -93,26 +93,14 @@ curl -sL https://deb.nodesource.com/setup_9.x | bash - apt-get install -y nodejs ``` -#### Installing and using nvm +#### Installing and using ~~nvm~~ nvs -You may need to use multiple node versions on the same machine. `nvm` will be very useful in this case. +You may need to use multiple node versions on the same machine. ~~`nvm` will be very useful in this case.~~ [`nvs`](https://github.com/jasongin/nvs) is a much better, cross-platform implementation. ```shell -# using curl -curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash - -# or wget -wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash - -# Optional: Add "| NVM_DIR=/path/to/nvm bash" to the end of the above line if you need to change install directory -# "| NVM_DIR=/usr/local/nvm bash" for global (all users) install -``` - -And then add this to your `~/.bashrc` or `~/.zshrc`: - -```shell -export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" +export NVS_HOME="$HOME/.nvs" +git clone https://github.com/jasongin/nvs "$NVS_HOME" +. "$NVS_HOME/nvs.sh" install ``` ### PulseAudio