Ran the latest test again - here is the result
pi@HA-NodeJS-Dev:~/.node-red$
This script checks the version of node.js installed is 12 or greater. It will try to
install node 14 if none is found. It can optionally install node 12 LTS or 14 LTS for you.
If necessary it will then remove the old core of Node-RED, before then installing the latest
version. You can also optionally specify the version required.
It also tries to run 'npm rebuild' to refresh any extra nodes you have installed
that may have a native binary component. While this normally works ok, you need
to check that it succeeds for your combination of installed nodes.
To do all this it runs commands as root - please satisfy yourself that this will
not damage your Pi, or otherwise compromise your configuration.
If in doubt please backup your SD card first.
See the optional parameters by re-running this command with --help
Are you really sure you want to do this ? [y/N] ? y
Would you like to install the Pi-specific nodes ? [y/N] ? n
Running Node-RED update for user pi at /home/pi on ubuntu
This can take 20-30 minutes on the slower Pi versions - please wait.
Stop Node-RED
Remove old version of Node-RED
Node option not specified : --node12 or --node14
Leave existing Node.js : v14.17.0 Npm 6.14.13
Clean npm cache -
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it! existing nodes
Install Node-RED core
Move global nodes to local -
Leave existing nodes -
Install extra Pi nodes -
Add shortcut commands
Update systemd script /nodered-install.log
All done.
You can now start Node-RED with the command node-red-start
or using the icon under Menu / Programming / Node-RED
Then point your browser to localhost:1880 or http://{your_pi_ip-address}:1880
Started Sun 23 May 12:14:21 AEST 2021 - Finished Sun 23 May 12:14:47 AEST 2021
pi@HA-NodeJS-Dev:~/.node-red$ node-red-start
Start Node-RED
Once Node-RED has started, point a browser at http://172.16.100.36:1880
On Pi Node-RED works better with the Firefox or Chrome browser
Use node-red-stop to stop Node-RED
Use node-red-start to start Node-RED again
Use node-red-log to view the recent log output
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
Use sudo systemctl disable nodered.service to disable autostart on boot
To find more nodes and example flows - go to http://flows.nodered.org
Starting as a systemd service.
Error loading settings file: /home/pi/.node-red/settings.js
Error: Could not locate the bindings file. Tried:
→ /home/pi/.node-red/node_modules/node-expat/build/node_expat.node
→ /home/pi/.node-red/node_modules/node-expat/build/Debug/node_expat.node
→ /home/pi/.node-red/node_modules/node-expat/build/Release/node_expat.node
→ /home/pi/.node-red/node_modules/node-expat/out/Debug/node_expat.node
→ /home/pi/.node-red/node_modules/node-expat/Debug/node_expat.node
→ /home/pi/.node-red/node_modules/node-expat/out/Release/node_expat.node
→ /home/pi/.node-red/node_modules/node-expat/Release/node_expat.node
→ /home/pi/.node-red/node_modules/node-expat/build/default/node_expat.node
→ /home/pi/.node-red/node_modules/node-expat/compiled/14.17.0/linux/x64/node_expat.node
at bindings (/home/pi/.node-red/node_modules/bindings/bindings.js:93:9)
at Object. (/home/pi/.node-red/node_modules/node-expat/lib/node-expat.js:4:32)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Module.require (internal/modules/cjs/loader.js:957:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/home/pi/.node-red/node_modules/xml2json/lib/xml2json.js:1:13)
at Module._compile (internal/modules/cjs/loader.js:1068:30) {
tries: [
'/home/pi/.node-red/node_modules/node-expat/build/node_expat.node',
'/home/pi/.node-red/node_modules/node-expat/build/Debug/node_expat.node',
'/home/pi/.node-red/node_modules/node-expat/build/Release/node_expat.node',
'/home/pi/.node-red/node_modules/node-expat/out/Debug/node_expat.node',
'/home/pi/.node-red/node_modules/node-expat/Debug/node_expat.node',
'/home/pi/.node-red/node_modules/node-expat/out/Release/node_expat.node',
'/home/pi/.node-red/node_modules/node-expat/Release/node_expat.node',
'/home/pi/.node-red/node_modules/node-expat/build/default/node_expat.node',
'/home/pi/.node-red/node_modules/node-expat/compiled/14.17.0/linux/x64/node_expat.node'
]
}
Craig