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:
I'm using Node Red in a Docker container and this is the theme:
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?
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.
// 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.
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.
Thank you.
But strange, I can't see the files installed globally:
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.
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.
Then updated my settings.js to read as per the new usage.