Rasp-Node-Red-Node.js

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche



MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.

Firstly open up a secure shell into your Pi or open up a console session if you are working directly from the Pi.

We then need to get ourselves a working copy of Node.js. Node.js is a an event driven server side javascript environment. It is essentially the foundation that Node-Red will run on.

For the Pi it has been a pain in the past to get Node.js running but luckily there have been some tweaks made by the clever people out there that make our lives easier.

So go ahead and run the following commands in your terminal window, which will ensure our Pi is up to date and ready to go.

sudo apt-get update
sudo apt-get upgrade

We then jump in to downloading the latest Pi compatible version of Node.js.

sudo wget http://node-arm.herokuapp.com/node_latest_armhf.deb

Due to the download being in a convenient Debian package we can run the install by simply performing the following command.

sudo dpkg -i node_latest_armhf.deb

Due to the download being in a convenient Debian package we can run the install by simply performing the following command.

sudo dpkg -i node_latest_armhf.deb

Once the installation has run through you can check to see if node.js is available and installed by calling its version as shown below.

node -v

Voila, nous pouvons maintenant passer à l'installation de Node-Red sur Raspberry-Pi


Source: Raspberry Pi Hosting Node-Red
Créé par C. Mobberley pour AdaFruit Industries.

Traduction réalisée et augmentée par Meurisse D. pour MCHobby.be.

Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : «  Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.

L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.

Traduit avec l'autorisation d'AdaFruit Industries - Translated with the permission from Adafruit Industries - www.adafruit.com