ss-jade / mqtt-server-raspberry

Raspberry Pi 4 MQTT server
0 stars 0 forks source link

node-RED does not work on Rasp #1

Open gmarxcc opened 2 years ago

gmarxcc commented 2 years ago
npm install node-red
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'hpagent@1.0.0',
npm WARN EBADENGINE   required: { node: '>=14' },
npm WARN EBADENGINE   current: { node: 'v12.22.12', npm: '7.5.2' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'node-red@3.0.1',
npm WARN EBADENGINE   required: { node: '>=14' },
npm WARN EBADENGINE   current: { node: 'v12.22.12', npm: '7.5.2' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'node-red-admin@3.0.0',
npm WARN EBADENGINE   required: { node: '>=14' },
npm WARN EBADENGINE   current: { node: 'v12.22.12', npm: '7.5.2' }
npm WARN EBADENGINE }

up to date, audited 319 packages in 3s

38 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
gmarxcc commented 2 years ago

Specifically, using the Raspberry Pi 4 we have to install the Node-RED by:

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

then,

node-red-start

and we can enable it to run every time the rasp turns on by

sudo systemctl enable nodered.service