Closed SummerSeaSun closed 2 years ago
Moving this over to the linux installs repository.
that is a Debian issue.
Use our command-line installer instead as per the docs and it should remove all the apt installed nodejs. see https://nodered.org/docs/getting-started/raspberrypi
Thank you, I've tried the script it seems it leave the system as it is. I needed to remove the python2 then run it again.
Running Node-RED install for user pi at /home/pi on raspbian
This can take 20-30 minutes on the slower Pi versions - please wait. Stop Node-RED ✔ Remove old version of Node-RED ✔ Remove old version of Node.js - Leave existing Node.js - Node v10.23.1 Npm 5.8.0 Clean npm cache - npm WARN npm npm does not support Node.js v10.23.1 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9. npm WARN npm You can find the latest version at https://nodejs.org/ Install Node-RED core ✔ 1.2.7 npm WARN npm npm does not support Node.js v10.23.1 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9. npm WARN npm You can find the latest version at https://nodejs.org/ Move global nodes to local ✔ Install extra Pi nodes ✔ Npm rebuild existing nodes - Add shortcut commands ✔ Update systemd script ✔
All done. You can now start Node-RED with the command node-red-start or using the icon under Menu / Programming / Node-RED
then:
apt remove python2
then:
This can take 20-30 minutes on the slower Pi versions - please wait.
Stop Node-RED ✔ Remove old version of Node-RED ✔ Remove old version of Node.js ✔ Install Node.js LTS ✔ Node v12.20.1 Npm 6.14.10 Clean npm cache ✔ Install Node-RED core ✔ 1.2.7 Move global nodes to local - Install extra Pi nodes ✔ Npm rebuild existing nodes ✔ Add shortcut commands ✔ Update systemd script ✔
All done. You can now start Node-RED with the command node-red-start or using the icon under Menu / Programming / Node-RED
we don't specifically remove python2 - we should remove all those node.js packages some of which pre-req python2 .
Time has moved on ... bullseye version of raspios now only has python3 etc
I've running latest raspberry pi os, installed nodered by apt, then found that is needed Python2.
Linux pi 5.4.83-v7+ node-red/node-red#1379 SMP Mon Dec 14 13:08:57 GMT 2020 armv7l GNU/Linux
This are the packages that requires python2:
Python 2 should be or replaced by 3 https://pythonclock.org/