# Disabling Function External Modules

**URL:** <https://discourse.nodered.org/t/disabling-function-external-modules/59734>\
**Category:** General\
**Created:** [11 March 2022 21:19 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734 "2022-03-11T21:19:14Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![MercerMayhem](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@MercerMayhem](https://discourse.nodered.org/u/MercerMayhem)\
**Post date:** [11 March 2022 21:19 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734/1 "2022-03-11T21:19:14Z")

</div>

Can anyone point me in the direction or have directions on how I can do this?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/1/91b94fb1dbcdb1ea2adf120674e6646b26187a7e.png)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 March 2022 21:27 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734/2 "2022-03-11T21:27:01Z")

</div>

If you look into the settings.js file, you should find what you want.

---

<div class="post-metadata">

**Author:** ![MercerMayhem](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@MercerMayhem](https://discourse.nodered.org/u/MercerMayhem)\
**Post date:** [11 March 2022 22:02 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734/3 "2022-03-11T22:02:12Z")

</div>

where can i find that

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 March 2022 22:03 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734/4 "2022-03-11T22:03:34Z")

</div>

In the same folder as your flow files - the userDir folder. Typically `~/.node-red`

---

<div class="post-metadata">

**Author:** ![MercerMayhem](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@MercerMayhem](https://discourse.nodered.org/u/MercerMayhem)\
**Post date:** [11 March 2022 22:07 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734/5 "2022-03-11T22:07:07Z")

</div>

theres no way to do it in the node red web display?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 March 2022 22:08 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734/6 "2022-03-11T22:08:12Z")

</div>

No, that is by design. It is a setting that must be read as Node-RED starts. If you could set it in the Editor, then anyone with access could change it.

---

<div class="post-metadata">

**Author:** ![MercerMayhem](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@MercerMayhem](https://discourse.nodered.org/u/MercerMayhem)\
**Post date:** [11 March 2022 22:09 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734/7 "2022-03-11T22:09:21Z")

</div>

Editor? how so?

---

<div class="post-metadata">

**Author:** ![MercerMayhem](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@MercerMayhem](https://discourse.nodered.org/u/MercerMayhem)\
**Post date:** [11 March 2022 22:10 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734/8 "2022-03-11T22:10:25Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/6/8677937bbeb94efe746798a0cafded8ca9d07f5f.png)

quite a few here

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 March 2022 22:10 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734/9 "2022-03-11T22:10:37Z")

</div>

I recommend reading the docs.

The Editor is the admin web interface where you create and amend flows. Just because someone has access to that doesn't mean that they've been given access to the underlying files in the userDir folder.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 March 2022 22:11 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734/10 "2022-03-11T22:11:35Z")

</div>

I said where it was. The userDir folder. I even gave the typical location. If you restart Node-RED while watching the logs, you will see it there as well.

---

<div class="post-metadata">

**Author:** ![MercerMayhem](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@MercerMayhem](https://discourse.nodered.org/u/MercerMayhem)\
**Post date:** [11 March 2022 22:24 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734/11 "2022-03-11T22:24:35Z")

</div>

Thank you for your help, sadly even after changing to false my node red function block still has the on start, on message, and on stop tabs. No just function tab ☹

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 March 2022 22:25 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734/12 "2022-03-11T22:25:24Z")

</div>

Did you restart node-red?

---

<div class="post-metadata">

**Author:** ![MercerMayhem](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@MercerMayhem](https://discourse.nodered.org/u/MercerMayhem)\
**Post date:** [11 March 2022 22:28 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734/13 "2022-03-11T22:28:50Z")

</div>

I thought I did, ill try one more time....

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/0/8000ab000db95933a87d3669f02e42e15c4ce1f7.png)

nope still the same

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 March 2022 22:31 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734/14 "2022-03-11T22:31:46Z")

</div>

The function node will still look the same unless you also reload the editor. At that point the setup tab loses the extra settings:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/3/735b03426bae2adff1939c3c94025ef5219456ff.png)

And if you check the logs, you'll see something like this:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/a/4a4f5f921194ef317f5ebb11648679408d57613e.png)

The node won't then work until you remove the module code.

You probably want to remove any modules you added before you turn off the feature since they are actually retained in the node it seems - I just turned off then back on the feature and my modules were still there.

Also, you may want to manually remove any installed modules if there are any left. Best to turn on the feature, remove the modules then turn it off.

---

<div class="post-metadata">

**Author:** ![MercerMayhem](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@MercerMayhem](https://discourse.nodered.org/u/MercerMayhem)\
**Post date:** [11 March 2022 22:34 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734/15 "2022-03-11T22:34:39Z")

</div>

Damn, im trying to get it like this project for school where in stead of those 3 tabs its just one whole function tab. It tells me to write a certain function in it and I cant get it to work with all this "on \_\_\_\_" stuff. Maybe this assignment is old and that was an older version of node red at the time?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 March 2022 22:35 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734/16 "2022-03-11T22:35:44Z")

</div>

Yes, quite probably. In that case, leave the setting alone and just ignore the other tabs, you aren't forced to use them. Just use the on message tab as that was the original anyway.

---

<div class="post-metadata">

**Author:** ![MercerMayhem](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@MercerMayhem](https://discourse.nodered.org/u/MercerMayhem)\
**Post date:** [11 March 2022 22:42 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734/17 "2022-03-11T22:42:27Z")

</div>

alright man thank you so much

---

<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:** [10 May 2022 22:42 UTC](https://discourse.nodered.org/t/disabling-function-external-modules/59734/18 "2022-05-10T22:42:53Z")

</div>

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