Update Raspberry Strecht Lite to the latest version.
Log in to the Raspberry Pi using PuttyType the following commands one by one
sudo rpi-updatesudo reboot & exit(reboot the Raspberry Pi)sudo apt-get -y updatesudo apt-get -y upgradesudo apt-get dist-upgradesudo reboot & exit(reboot the Raspberry Pi)
Install the latest Node.js and Npm
bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)To find the version type this commands:
node -vv8.9.3
npm -v5.5.1
Install n
sudo npm install -g nsudo n latestsudo npm install -g npm@latestsudo reboot & exit(reboot the Raspberry Pi)
node -vv9.3.0
npm -v5.6.0
Start and Stop Node-Red
node-red-stop - to stop Node-rednode-red-start - to start Node-Rednode-red-log - to view the recent log outputsudo systemctl enable nodered.service - to autostart Node-Red at every bootsudo systemctl disable nodered.service - to disable autostart on bootFix the Serialport Error
cd .node-rednode-red-stopsudo npm rebuildde-red-start(ctrl c to exit Node-red)
Start Node-Red as a service
sudo systemctl enable nodered.servicenode-red-start(ctrl c to exit Node-red)


No comments:
Post a Comment