I get following output on those commands:
which git: /usr/bin/git
git --version: git version 2.20.1
Inside /var/snap/node-red/current/settings.js I have the part of the projects defined like this:
editorTheme: {
projects: {
gitCommand: '/usr/bin/git',
// To enable the Projects feature, set this value to true
enabled: true
}
}
Removing gitCommand does not change anything.
Not sure what I am doing wrong, when looking up online I only find posts about people not installing git but git is clearly already installed on my system but I continue to get this issue.
Hello,
yes I have restarted node-red multiple times. I have also rebooted the entire maschine.
The exec node failes and response with code:1 and message: "Command failed: which git"
It doesn't seem to find it. Hope I don't have to reinstall nodered for this but it is one thing I have not tried yet.
So my guess would be to reinstall nodered. There are multiple ways installing it, I did already install npm using apt and installing node-red via npm.
Is this a good approach?
I sadly do not know how someone makes a choice on how to install it. I am guessing other sources can bring in different issues.
I have Uninstalled snap and npm completely. I have set it up with the Raspberry Pi installer which works perfectly. Would have never used it because I clearly did not run it on a raspberry pi.
The first sentence in the getting started docs for running node red locally is
If you are on a Raspberry Pi or any Debian-based operating system, including Ubuntu and Diet-Pi, you can use the Pi install script available here.