start:rasberry:nodered:maj
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
start:rasberry:nodered:maj [2024/01/16 21:52] – [mettre à jour Node.js sur Raspberry Pi via Node Version Manager] gerardadmin | start:rasberry:nodered:maj [2025/01/28 11:42] (Version actuelle) – [Mise à jour de node ( Idem installation voir MAJ raspberry )] admin | ||
---|---|---|---|
Ligne 7: | Ligne 7: | ||
sudo apt upgrade | sudo apt upgrade | ||
bash <(curl -sL https:// | bash <(curl -sL https:// | ||
+ | | ||
+ | | ||
+ | {{ : | ||
Validez avec la touche entrée et répondez « yes » avec « y » à toutes les questions : | Validez avec la touche entrée et répondez « yes » avec « y » à toutes les questions : | ||
Ligne 19: | Ligne 22: | ||
- | On installe la derniere version de node-red | + | On installe la derniere version |
sudo npm install -g n | sudo npm install -g n | ||
- | | + | |
On reboot le raspberry | On reboot le raspberry | ||
Ligne 34: | Ligne 37: | ||
si l'on obtient : | si l'on obtient : | ||
- | V21.5.0 ( au 14/01/2024) c'est bon | + | V22.4.0 ( au 22/07/2024) c'est bon |
sinon essayer ceci : | sinon essayer ceci : | ||
Ligne 42: | Ligne 45: | ||
sudo apt-get install nodejs -y | sudo apt-get install nodejs -y | ||
node -v ( On devrait avoir la version 20.11.0 ) | node -v ( On devrait avoir la version 20.11.0 ) | ||
+ | Sinon .... A suivre .... | ||
| | ||
| | ||
Ligne 52: | Ligne 56: | ||
< | < | ||
+ | |||
+ | |||
+ | ====== Methode pour la mise à jour de node.js ====== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | |||
+ | <code txt majnode.txt> | ||
+ | # layouts.download.codeBox.installsNvm | ||
+ | curl -o- https:// | ||
+ | |||
+ | # layouts.download.codeBox.downloadAndInstallNodejsRestartTerminal | ||
+ | nvm install 20 # indiquer le n° de version ( 2 Chiffres ) | ||
+ | |||
+ | # layouts.download.codeBox.verifiesRightNodejsVersion | ||
+ | node -v # layouts.download.codeBox.shouldPrint | ||
+ | |||
+ | # layouts.download.codeBox.verifiesRightNpmVersion | ||
+ | npm -v # layouts.download.codeBox.shouldPrint | ||
| | ||
- | + | </ | |
/home/chanteri/www/fablab37110/data/attic/start/rasberry/nodered/maj.1705438335.txt.gz · Dernière modification : 2024/01/16 21:52 de gerardadmin