Browse Source

[wiki] Replaced nvm with nvs

pull/1/head
Muthu Kumar 6 years ago
committed by GitHub
parent
commit
0520eda986
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      README.md

22
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

Loading…
Cancel
Save