# Problem in enabling projects

**URL:** <https://discourse.nodered.org/t/problem-in-enabling-projects/14913>\
**Category:** General\
**Created:** [29 August 2019 14:35 UTC](https://discourse.nodered.org/t/problem-in-enabling-projects/14913 "2019-08-29T14:35:59Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcMarc2006](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcmarc2006/32/11470_2.png) [@MarcMarc2006](https://discourse.nodered.org/u/MarcMarc2006)\
**Post date:** [29 August 2019 14:36 UTC](https://discourse.nodered.org/t/problem-in-enabling-projects/14913/1 "2019-08-29T14:36:00Z")

</div>

Hi,  
I am new to node-red and a am learning how to use it but I have a problem. In the node-red site it is written that to enable projects we have to modify the "settings.js" file. I found this file but when i want to open it, it doesn't work (it is wrinting that 'module' is undefined line 21). Please can you help me??

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [29 August 2019 14:37 UTC](https://discourse.nodered.org/t/problem-in-enabling-projects/14913/2 "2019-08-29T14:37:21Z")

</div>

(Moved back to #general category as this isn't related to creating nodes...)

What do you mean exactly when you say "when i want to open it, it doesn't work" ? How are you trying to open it? It is just a text file you can edit with any text editor.

---

<div class="post-metadata">

**Author:** ![MarcMarc2006](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcmarc2006/32/11470_2.png) [@MarcMarc2006](https://discourse.nodered.org/u/MarcMarc2006)\
**Post date:** [29 August 2019 14:39 UTC](https://discourse.nodered.org/t/problem-in-enabling-projects/14913/3 "2019-08-29T14:39:35Z")

</div>

When I press it to open it it gives me a message that says that in line 21 'module' is undefined.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [29 August 2019 14:47 UTC](https://discourse.nodered.org/t/problem-in-enabling-projects/14913/4 "2019-08-29T14:47:58Z")

</div>

> [@MarcMarc2006](#):
>
> When I press it to open

Do you mean you are double-clicking on the `settings.js` file in some file manager and you then get that error?

That is because double-clicking on it will cause your operating system to try to _run_ the file. You don't want to do that. You need to _edit_ the file.

---

<div class="post-metadata">

**Author:** ![MarcMarc2006](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcmarc2006/32/11470_2.png) [@MarcMarc2006](https://discourse.nodered.org/u/MarcMarc2006)\
**Post date:** [29 August 2019 14:50 UTC](https://discourse.nodered.org/t/problem-in-enabling-projects/14913/5 "2019-08-29T14:50:46Z")

</div>

Now it worked but i have another problem:  
I changed the variable projects to true and saved the file but in node-red it didn't write anything about projects as it's written in the site

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [29 August 2019 14:52 UTC](https://discourse.nodered.org/t/problem-in-enabling-projects/14913/6 "2019-08-29T14:52:04Z")

</div>

Have you restarted Node-RED after saving the changes to the file?

When Node-RED starts up it logs which settings file it is using. Are you sure you are editing the right file?

---

<div class="post-metadata">

**Author:** ![MarcMarc2006](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcmarc2006/32/11470_2.png) [@MarcMarc2006](https://discourse.nodered.org/u/MarcMarc2006)\
**Post date:** [29 August 2019 14:54 UTC](https://discourse.nodered.org/t/problem-in-enabling-projects/14913/7 "2019-08-29T14:54:12Z")

</div>

I restarted node red and in the monitor it is written"[warn] Projects disabled : git command not found"

---

<div class="post-metadata">

**Author:** ![MarcMarc2006](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcmarc2006/32/11470_2.png) [@MarcMarc2006](https://discourse.nodered.org/u/MarcMarc2006)\
**Post date:** [29 August 2019 14:58 UTC](https://discourse.nodered.org/t/problem-in-enabling-projects/14913/8 "2019-08-29T14:58:03Z")

</div>

I mean in the prompt not in the monitor

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [29 August 2019 14:59 UTC](https://discourse.nodered.org/t/problem-in-enabling-projects/14913/9 "2019-08-29T14:59:30Z")

</div>

> [@MarcMarc2006](#):
>
> Projects disabled : git command not found

So you do not have the git command line tools installed. They are a prerequisite for enabling the projects feature.

---

<div class="post-metadata">

**Author:** ![MarcMarc2006](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcmarc2006/32/11470_2.png) [@MarcMarc2006](https://discourse.nodered.org/u/MarcMarc2006)\
**Post date:** [29 August 2019 15:04 UTC](https://discourse.nodered.org/t/problem-in-enabling-projects/14913/10 "2019-08-29T15:04:18Z")

</div>

How can we install the git command line tool?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [29 August 2019 15:18 UTC](https://discourse.nodered.org/t/problem-in-enabling-projects/14913/11 "2019-08-29T15:18:48Z")

</div>

That would depend on what operating system you are using. But a quick google should return instructions

---

<div class="post-metadata">

**Author:** ![MarcMarc2006](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcmarc2006/32/11470_2.png) [@MarcMarc2006](https://discourse.nodered.org/u/MarcMarc2006)\
**Post date:** [29 August 2019 15:20 UTC](https://discourse.nodered.org/t/problem-in-enabling-projects/14913/12 "2019-08-29T15:20:41Z")

</div>

Ok and thank you for all your help 🙂
