25-07-2021
This commit is contained in:
40
docs/Synology/dsm7/node.md
Normal file
40
docs/Synology/dsm7/node.md
Normal file
@@ -0,0 +1,40 @@
|
||||
# Node.js
|
||||
|
||||
|
||||
|
||||
Installer nvm
|
||||
|
||||
```bash
|
||||
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
|
||||
```
|
||||
|
||||
Installer node=lts/fermium (ou mettre-à-jour)
|
||||
|
||||
```bash
|
||||
$ nvm install --lts=fermium
|
||||
```
|
||||
|
||||
Mettre-à-jour npm
|
||||
|
||||
```bash
|
||||
$ npm -g install npm
|
||||
```
|
||||
|
||||
Réinstaller les paquets d'une ancienne version après une mise-à jour:
|
||||
|
||||
```bash
|
||||
# update 14.17.3 depuis 14.17.0
|
||||
$ nvm reinstall-packages 14.17.0
|
||||
```
|
||||
|
||||
|
||||
|
||||
Installer thumbsup
|
||||
|
||||
```bash
|
||||
$ npm -g install thumbsup
|
||||
|
||||
$ which thumbsup
|
||||
/var/services/homes/bruno/.nvm/versions/node/v14.17.3/bin/thumbsup
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user