# Error: Module not allowed - UI Media

**URL:** <https://discourse.nodered.org/t/error-module-not-allowed-ui-media/77082>\
**Category:** Dashboard\
**Tags:** node-red-dashboard\
**Created:** [30 March 2023 14:09 UTC](https://discourse.nodered.org/t/error-module-not-allowed-ui-media/77082 "2023-03-30T14:09:18Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![soerenbull](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@soerenbull](https://discourse.nodered.org/u/soerenbull)\
**Post date:** [30 March 2023 14:09 UTC](https://discourse.nodered.org/t/error-module-not-allowed-ui-media/77082/1 "2023-03-30T14:09:18Z")

</div>

Hey.

Newbie to Node-Red.  
After installation the UI Module for dashboard i get the following error in CMD

[error] [ui\_media:b29d1cdb02d2be5f] Error: Module not allowed

Tried both installaing by Palette and npm  
Any sugestions ?

---

<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:** [30 March 2023 14:26 UTC](https://discourse.nodered.org/t/error-module-not-allowed-ui-media/77082/2 "2023-03-30T14:26:34Z")

</div>

Hi @soerenbull - Welcome to the forums.

You might want to check your `settings.js` file - seems some modules have been prevented from being allowed to run

---

<div class="post-metadata">

**Author:** ![soerenbull](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@soerenbull](https://discourse.nodered.org/u/soerenbull)\
**Post date:** [30 March 2023 14:36 UTC](https://discourse.nodered.org/t/error-module-not-allowed-ui-media/77082/3 "2023-03-30T14:36:31Z")

</div>

Thank you for quick reply.  
Have an idea where to look ?

---

<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:** [30 March 2023 14:37 UTC](https://discourse.nodered.org/t/error-module-not-allowed-ui-media/77082/4 "2023-03-30T14:37:31Z")

</div>

Welcome to the forum @soerenbull

I presume that error appears when you start node-red. Can you post the full output when you do that please, including the command line. Copy/paste not screenshot please. Use the `</>` button at the top of the forum entry window when pasting it in.

---

<div class="post-metadata">

**Author:** ![soerenbull](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@soerenbull](https://discourse.nodered.org/u/soerenbull)\
**Post date:** [30 March 2023 14:39 UTC](https://discourse.nodered.org/t/error-module-not-allowed-ui-media/77082/5 "2023-03-30T14:39:05Z")

</div>

Thank you Colin.  
you mean this ?

```auto
Microsoft Windows [Version 10.0.19045.2728]
(c) Microsoft Corporation. Alle rettigheder forbeholdes.

C:\Users\post>node-red
30 Mar 16:37:52 - [info]

Welcome to Node-RED
===================

30 Mar 16:37:52 - [info] Node-RED version: v3.0.2
30 Mar 16:37:52 - [info] Node.js version: v19.8.1
30 Mar 16:37:52 - [info] Windows_NT 10.0.19045 x64 LE
30 Mar 16:37:54 - [info] Loading palette nodes
30 Mar 16:37:56 - [info] Dashboard version 1.0.2 started at /ui
30 Mar 16:37:56 - [info] Settings file : C:\Users\post\.node-red\settings.js
30 Mar 16:37:56 - [info] Context store : 'default' [module=memory]
30 Mar 16:37:56 - [info] User directory : \Users\post\.node-red
30 Mar 16:37:56 - [warn] Projects disabled : editorTheme.projects.enabled=false
30 Mar 16:37:56 - [info] Flows file : \Users\post\.node-red\flows.json
30 Mar 16:37:56 - [info] Server now running at http://127.0.0.1:1880/
30 Mar 16:37:56 - [warn]

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

30 Mar 16:37:56 - [info] Starting flows
30 Mar 16:37:56 - [warn] [s7 endpoint:038fb96ac4ed4e5a] No variables configured, skipping cyclic reading
30 Mar 16:37:56 - [info] Node users started /users
30 Mar 16:37:56 - [error] [ui_media:b29d1cdb02d2be5f] Error: Module not allowed
30 Mar 16:37:56 - [info] Started flows

```

---

<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:** [30 March 2023 14:48 UTC](https://discourse.nodered.org/t/error-module-not-allowed-ui-media/77082/6 "2023-03-30T14:48:10Z")

</div>

> [@soerenbull](#):
>
> `30 Mar 16:37:56 - [info] Settings file : C:\Users\post\.node-red\settings.js`

Check that file.

I think there is a section of `externalModules`, check here for any clue that may stop the module from running.

---

<div class="post-metadata">

**Author:** ![soerenbull](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@soerenbull](https://discourse.nodered.org/u/soerenbull)\
**Post date:** [30 March 2023 14:50 UTC](https://discourse.nodered.org/t/error-module-not-allowed-ui-media/77082/7 "2023-03-30T14:50:16Z")

</div>

Maybe some of this `?

```auto
    externalModules: {
        // autoInstall: false, /** Whether the runtime will attempt to automatically install missing modules */
        // autoInstallRetry: 30, /** Interval, in seconds, between reinstall attempts */
        // palette: { /** Configuration for the Palette Manager */
        // allowInstall: true, /** Enable the Palette Manager in the editor */
        // allowUpdate: true, /** Allow modules to be updated in the Palette Manager */
        // allowUpload: true, /** Allow module tgz files to be uploaded and installed */
        // allowList: ['*'],
        // denyList: [],
        // allowUpdateList: ['*'],
        // denyUpdateList: []
        // },
        // modules: { /** Configuration for node-specified modules */
        // allowInstall: true,
        // allowList: [],
        // denyList: []
        // }
    },

```

---

<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:** [30 March 2023 14:54 UTC](https://discourse.nodered.org/t/error-module-not-allowed-ui-media/77082/8 "2023-03-30T14:54:12Z")

</div>

> [@soerenbull](#):
>
> `30 Mar 16:37:52 - [info] Node.js version: v19.8.1`

That is not a supported version of nodejs, you should stick to an LTS version, 16 or 18. I don't use Windows so I don't know how to do that. The node red getting started docs for Windows should tell you how you should install it.

> [@soerenbull](#):
>
> `30 Mar 16:37:56 - [info] Dashboard version 1.0.2 started at /ui`

How on earth did you install that ancient version? The current version of node-red-dashboard is 3.4.0.

---

<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:** [30 March 2023 15:48 UTC](https://discourse.nodered.org/t/error-module-not-allowed-ui-media/77082/9 "2023-03-30T15:48:16Z")

</div>

That is all commented out, so nothing wrong there.  
Downgrade nodejs and install the latest version of the dashboard and I suspect you will be ok.

---

<div class="post-metadata">

**Author:** ![soerenbull](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@soerenbull](https://discourse.nodered.org/u/soerenbull)\
**Post date:** [5 April 2023 06:00 UTC](https://discourse.nodered.org/t/error-module-not-allowed-ui-media/77082/10 "2023-04-05T06:00:17Z")

</div>

Upgraded dashboard. Everything works now.

Thank you!

---

<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:** [19 April 2023 06:00 UTC](https://discourse.nodered.org/t/error-module-not-allowed-ui-media/77082/11 "2023-04-19T06:00:25Z")

</div>

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