# My Projects disabled: git command not found

**URL:** <https://discourse.nodered.org/t/my-projects-disabled-git-command-not-found/82185>\
**Category:** General\
**Created:** [19 October 2023 10:35 UTC](https://discourse.nodered.org/t/my-projects-disabled-git-command-not-found/82185 "2023-10-19T10:35:50Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Treekaya](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/treekaya/32/83910_2.png) [@Treekaya](https://discourse.nodered.org/u/Treekaya)\
**Post date:** [19 October 2023 10:35 UTC](https://discourse.nodered.org/t/my-projects-disabled-git-command-not-found/82185/1 "2023-10-19T10:35:50Z")

</div>

Using Debian and installed node-red via snap.

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.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [19 October 2023 10:38 UTC](https://discourse.nodered.org/t/my-projects-disabled-git-command-not-found/82185/2 "2023-10-19T10:38:48Z")

</div>

Welcome @Treekaya

Maybe a silly question: Have you restarted Node RED after enabling projects?  
Are you using some form of container for Node RED?

using an `exec` node what does `which git` yield?

---

<div class="post-metadata">

**Author:** ![Treekaya](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/treekaya/32/83910_2.png) [@Treekaya](https://discourse.nodered.org/u/Treekaya)\
**Post date:** [19 October 2023 10:48 UTC](https://discourse.nodered.org/t/my-projects-disabled-git-command-not-found/82185/3 "2023-10-19T10:48:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [19 October 2023 10:53 UTC](https://discourse.nodered.org/t/my-projects-disabled-git-command-not-found/82185/4 "2023-10-19T10:53:20Z")

</div>

I don't use snap - most here use bare-metal, so the snap thing maybe using a container, and therefore doesn't see "outside" said container 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [19 October 2023 11:15 UTC](https://discourse.nodered.org/t/my-projects-disabled-git-command-not-found/82185/5 "2023-10-19T11:15:08Z")

</div>

correct - the snap install version is fully inside it's container so has no access to apps (like git) that are outside.

---

<div class="post-metadata">

**Author:** ![Treekaya](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/treekaya/32/83910_2.png) [@Treekaya](https://discourse.nodered.org/u/Treekaya)\
**Post date:** [19 October 2023 11:41 UTC](https://discourse.nodered.org/t/my-projects-disabled-git-command-not-found/82185/6 "2023-10-19T11:41:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [19 October 2023 11:44 UTC](https://discourse.nodered.org/t/my-projects-disabled-git-command-not-found/82185/7 "2023-10-19T11:44:55Z")

</div>

Standard way on Debian is to use the Raspberry Pi installer bash script (and just answer no to installing Pi nodes)

[https://nodered.org/docs/getting-started/raspberrypi](https://nodered.org/docs/getting-started/raspberrypi)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [19 October 2023 17:07 UTC](https://discourse.nodered.org/t/my-projects-disabled-git-command-not-found/82185/8 "2023-10-19T17:07:05Z")

</div>

But make sure to uninstall the snap version first

---

<div class="post-metadata">

**Author:** ![Treekaya](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/treekaya/32/83910_2.png) [@Treekaya](https://discourse.nodered.org/u/Treekaya)\
**Post date:** [20 October 2023 08:06 UTC](https://discourse.nodered.org/t/my-projects-disabled-git-command-not-found/82185/9 "2023-10-20T08:06:57Z")

</div>

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.

Thank you. Got projects up and running.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [20 October 2023 09:00 UTC](https://discourse.nodered.org/t/my-projects-disabled-git-command-not-found/82185/10 "2023-10-20T09:00:21Z")

</div>

> [@Treekaya](#):
>
> 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](https://nodered.org/docs/getting-started/local) 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](https://nodered.org/docs/getting-started/raspberrypi).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 November 2023 09:01 UTC](https://discourse.nodered.org/t/my-projects-disabled-git-command-not-found/82185/11 "2023-11-03T09:01:14Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
