# Module ignored due to local copy

**URL:** <https://discourse.nodered.org/t/module-ignored-due-to-local-copy/82530>\
**Category:** General\
**Tags:** docker\
**Created:** [1 November 2023 19:32 UTC](https://discourse.nodered.org/t/module-ignored-due-to-local-copy/82530 "2023-11-01T19:32:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![877](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/877/32/8207_2.png) [@877](https://discourse.nodered.org/u/877)\
**Post date:** [1 November 2023 19:32 UTC](https://discourse.nodered.org/t/module-ignored-due-to-local-copy/82530/1 "2023-11-01T19:32:54Z")

</div>

Updated Node Red to v3.1.0 and found a problem with the dark mode theme I have used forever looking wrong. Example below, the background is now white instead of dark same as the palette:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/7/07d0e43b7b6f88729747d667ef0c7bff2aad12ba.png)

I'm using Node Red in a Docker container and this is the theme:

> **[@node-red-contrib-themes/midnight-red](https://www.npmjs.com/package/@node-red-contrib-themes/midnight-red)**
>
> A gorgeous dark theme for Node-RED. Latest version: 2.2.3, last published: 2 years ago. Start using @node-red-contrib-themes/midnight-red in your project by running \`npm i @node-red-contrib-themes/midnight-red\`. There is 1 other project in the npm...

No longer supported.

Node Red logs show this problem so it looks like I'm running an older version, how can I fix that please?

```auto
1 Nov 19:20:26 - [debug] Module: @node-red-contrib-themes/midnight-red 1.5.2 /data/node_modules/@node-red-contrib-themes/midnight-red
1 Nov 19:20:26 - [debug] ! Module: @node-red-contrib-themes/midnight-red 2.2.3 /usr/src/node-red/node_modules/@node-red-contrib-themes/midnight-red *ignored due to local copy*

```

Here's the end of my settings.js file which does not match the new format, but I think I need to make sure I'm using 2.2.3 first before changing.

```auto
 // Customising the editor
    editorTheme: {
        projects: {
            // To enable the Projects feature, set this value to true
            enabled: false
        },
        page: {
            css: "/usr/src/node-red/node_modules/@node-red-contrib-themes/midnight-red/theme.css"
        }

```

Or maybe Node Red already supports dark mode nowadays and I don't need the theme at all?

I'm not that up to date due to life and don't really want to break anything just now if that makes sense.

---

<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:** [1 November 2023 19:53 UTC](https://discourse.nodered.org/t/module-ignored-due-to-local-copy/82530/2 "2023-11-01T19:53:08Z")

</div>

You have one version installed locally as is correct. But you have the other, newer version installed globally. Remove the global version and update the local version.

---

<div class="post-metadata">

**Author:** ![877](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/877/32/8207_2.png) [@877](https://discourse.nodered.org/u/877)\
**Post date:** [1 November 2023 20:29 UTC](https://discourse.nodered.org/t/module-ignored-due-to-local-copy/82530/3 "2023-11-01T20:29:14Z")

</div>

Thank you.  
But strange, I can't see the files installed globally:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/d/2d9c0477e606e59a910cdd2c09fc4aa6cf559d86.png)

I have only ever used Node Red in Docker container, of course I may have fudged up somewhere when installing the package.

Here's how I installed the theme:  
Enter Portainer, choose Node Red, and enter terminal.  
Run `npm install @node-red-contrib-themes/midnight-red`  
Exit terminal and restart container.

---

<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:** [1 November 2023 20:41 UTC](https://discourse.nodered.org/t/module-ignored-due-to-local-copy/82530/4 "2023-11-01T20:41:07Z")

</div>

I don't use Docker for Node-RED but I think from inside Dockers command line, you would need to:

```auto
cd /data
npm install @node-red-contrib-themes/midnight-red

```

---

<div class="post-metadata">

**Author:** ![877](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/877/32/8207_2.png) [@877](https://discourse.nodered.org/u/877)\
**Post date:** [2 November 2023 11:51 UTC](https://discourse.nodered.org/t/module-ignored-due-to-local-copy/82530/5 "2023-11-02T11:51:19Z")

</div>

Seemed to have got it sorted now thanks for the tips. Info below for any searching the same issue.

_ **Note - all of this is within the Docker container** _

Seems the one newer copy was installed in `/usr/src/node-red` and the older copy in `/data`, must have been my error.

So I `npm uninstall` 'd both from the respective directories, and installed the newer supported theme package in `/data` directory with `npm install @node-red-contrib-themes/theme-collection`.

> **[GitHub - node-red-contrib-themes/theme-collection: A collection of themes for...](https://github.com/node-red-contrib-themes/theme-collection)**
>
> A collection of themes for Node-RED. Contribute to node-red-contrib-themes/theme-collection development by creating an account on GitHub.

Then updated my `settings.js` to read as per the [new usage.](https://github.com/node-red-contrib-themes/theme-collection#usage)

Restarted the container and all is good! 🙂

---

<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:** [16 November 2023 11:51 UTC](https://discourse.nodered.org/t/module-ignored-due-to-local-copy/82530/6 "2023-11-16T11:51:51Z")

</div>

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