Skip to content

Raspberry PI2 and PI3 hints

Klaus Landsdorf edited this page Jan 21, 2017 · 2 revisions

tested on ubuntu mate 16.04 LTS nodejs was 6.9.4

also tested on raspbian jessy pixel - nodejs was 0.10.x

recommendation on v0.11+ use >=4.7 and <=6.9.2

nodejs is >6.9.2

sudo npm cache clean -f

sudo npm install -g n

sudo n 6.9.2

nodejs is <4.7.0

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -

with NPM sudo npm install -g nodejs

without NPM sudo apt-get install nodejs or sudo apt install nodejs

NPM and Node-RED

see Node-RED installation guide

Reboot

sudo reboot

node -v (should show >=4.7.0 or <=6.9.2)

Install package

sudo npm install -g node-red-contrib-modbus --unsafe-perm --build-from-source

Data Generator

sudo npm install -g node-red-node-data-generator --unsafe-perm --build-from-source