I intall the nodered in debian 11.7.0 x64,but the installer report this:
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
This script checks the version of node.js installed is 14 or greater. It will try to
install node 16 if none is found. It can optionally install node 12, 14, 16 or 18 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 via at /home/via on debian
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 : --node14, --node16, or --node18
Leave existing Node.js : v16.20.0 Npm 8.19.4
Clean npm cache -
Install Node-RED core ✔ 3.0.2
Move global nodes to local -
Leave existing nodes -
Install extra Pi nodes -
Add shortcut commands ✘
sed: can't read /lib/systemd/system/nodered.service.temp: No such file or directory
sed: can't read /lib/systemd/system/nodered.service.temp: No such file or directory
mv: cannot stat '/lib/systemd/system/nodered.service.temp': No such file or directory
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 : Thu 11 May 2023 08:29:20 PM CST
Finished: Thu 11 May 2023 08:31:44 PM CST
**********************************************************************************
### WARNING ###
DO NOT EXPOSE NODE-RED TO THE OPEN INTERNET WITHOUT SECURING IT FIRST
Even if your Node-RED doesn't have anything valuable, (automated) attacks will
happen and could provide a foothold in your local network
Follow the guide at https://nodered.org/docs/user-guide/runtime/securing-node-red
to setup security.
### ADDITIONAL RECOMMENDATIONS ###
- You can customise the initial settings by running:
node-red admin init
- After running Node-RED for the first time, change the ownership of the settings
file to 'root' to prevent unauthorised changes:
sudo chown root:root ~/.node-red/settings.js
**********************************************************************************
Would you like to customise the settings now (y/N) ? n
Settings not initialized.
and the log file is:
Already have nodejs v16.20.0
OLD nodejs 16 :
NEW nodejs :
***************************************
Started : Thu 11 May 2023 08:29:20 PM CST
Running for user via at /home/via
Failed to stop nodered.service: Unit nodered.service not loaded.
Found global nodes: :
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package nodered
Versions: node:v16.20.0 npm:8.19.4
Now install Node-RED
added 292 packages in 2m
3.0.2
Now create basic package.json for the user and move any global nodes
Now add the shortcut and start/stop/log scripts to the menu
Now add systemd script and configure it for via:via @ /home/via
ln: failed to create symbolic link '/usr/bin/python': File exists
Now add launcher to top bar, add cpu temp example, make sure ping works
Allow binding to low ports : n
Memory : 4.7G
Started : Thu 11 May 2023 08:29:20 PM CST
Finished: Thu 11 May 2023 08:31:44 PM CST
I intall the nodered in debian 11.7.0 x64,but the installer report this:
and the log file is: