This commit is contained in:
2018-10-07 07:19:40 +02:00
parent e82296ba06
commit 53d2ce1c0d
8 changed files with 354 additions and 15 deletions

View File

@@ -2,6 +2,14 @@
nvm est un gestionnaire de version pour Node.
### Installation
#### Avec Homebrew:
Installer nvm:
```bash
@@ -36,6 +44,25 @@ $ echo $NVM_DIR
$ nvm --version
```
#### Avec git (méthode officielle):
```bash
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
```
Le script d'installation ajoute les lignes suivantes à votre profil (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`).
```bash
export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
```
### Utilisation
Installer NodeJS.
```bash