Outils pour utilisateurs

Outils du site


start:rasberry:nodered:maj

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
start:rasberry:nodered:maj [2024/08/10 12:55] – [Methode pour la mise à jour de node.js] gerardadminstart:rasberry:nodered:maj [2025/11/04 14:02] (Version actuelle) – [MAJ npm et node red] admin
Ligne 1: Ligne 1:
 ======== Mise à jour Node-red ======== ======== Mise à jour Node-red ========
 +
 +{{ :start:rasberry:nodered:capture_d_ecran_du_2025-11-04_09-21-30.png?direct&600 |}}
 +
 +[[https://nodejs.org/fr/download| MAJ Node red ]]
 +
 +<code bash majnodered>
 +
 +## au  07/10/2025
 +# Télécharger et installer nvm :
 +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
 +
 +# au lieu de redémarrer le shell
 +\. "$HOME/.nvm/nvm.sh"
 +
 +# Télécharger et installer Node.js :
 +nvm install 22 # indiquer la version à installer exemple :  nvm install 24
 +
 +# Vérifiez la version de Node.js :
 +node -v # Doit afficher "v22.20.0".
 +
 +# Vérifier la version de npm :
 +npm -v # Doit afficher "10.9.3".
 +</code>
  
  
Ligne 7: Ligne 30:
   sudo apt upgrade   sudo apt upgrade
   bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)   bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
 +  
 +  
 +{{ :start:rasberry:nodered:capture_d_ecran_du_2025-01-28_11-41-09.png?direct&800 |}}
  
 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 16: Ligne 42:
    wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash    wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
        
-{{ :start:rasberry:nodered:image.png?direct&600 |}} 
  
  
Ligne 60: Ligne 85:
  
  
 +<code txt majnode.txt>
 # layouts.download.codeBox.installsNvm # layouts.download.codeBox.installsNvm
 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
Ligne 72: Ligne 98:
 npm -v # layouts.download.codeBox.shouldPrint npm -v # layouts.download.codeBox.shouldPrint
      
-   +</code>    
 + 
 +===== MAJ npm et node red ===== 
 + 
 +    sudo npm update -g 
 + 
 +Ensuite, nous mettrons à jour Node.js en exécutant : 
 + 
 +    npm cache clean -f 
 +    sudo npm install --g npm 
 + 
 +Enfin, mettons à jour Node-RED en exécutant : 
 + 
 +    sudo npm install -g -unsafe-perm node-red 
 +    node-red-restart
  
  
/home/chanteri/www/fablab37110/data/attic/start/rasberry/nodered/maj.1723287306.txt.gz · Dernière modification : de gerardadmin