# Node-red-contrib-themes won't install

**URL:** <https://discourse.nodered.org/t/node-red-contrib-themes-wont-install/71531>\
**Category:** Dashboard\
**Tags:** node-red-dashboard\
**Created:** [1 December 2022 02:37 UTC](https://discourse.nodered.org/t/node-red-contrib-themes-wont-install/71531 "2022-12-01T02:37:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ptalbot](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@ptalbot](https://discourse.nodered.org/u/ptalbot)\
**Post date:** [1 December 2022 02:37 UTC](https://discourse.nodered.org/t/node-red-contrib-themes-wont-install/71531/1 "2022-12-01T02:37:45Z")

</div>

Problems:

- When I try to use the dashboard/Theme/Style/Dark, it doesn't work
- When I try to use the dashboard/Site/Always show side menu, it doesn't work

After changing those setting, I always do a full Deploy.

I have noticed that node-red-contrib-themes is not installed. Would that explain the problem that I see?

When I try to install @node-red-contrib-themes/theme-collection, I get the following log:

> 2022-12-01T02:06:31.359Z Install : @node-red-contrib-themes/theme-collection 3.0.6
> 
> 2022-12-01T02:06:30.334Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict @node-red-contrib-themes/theme-collection@3.0.6  
> 2022-12-01T02:06:31.635Z [err] npm  
> 2022-12-01T02:06:31.635Z [err]  
> 2022-12-01T02:06:31.636Z [err] WARN config production Use `--omit=dev` instead.  
> 2022-12-01T02:06:35.036Z [out]  
> 2022-12-01T02:06:35.036Z [out] up to date in 3s  
> 2022-12-01T02:06:35.063Z rc=0

In a terminal window, if I execute the npm install... command above with the `--omit=dev`, node red still show the node-red-contrib-themes not installed.

My setup is a Raspberry Pi 4 running OpenPlotter and SignalK with latest versions. SignalK has the pluggin **@signalk/signalk-node-red** with latest version 2.12.0.  
Node red version 2.1.6  
npm version 9.1.3  
I see the same behavior between Chome, Edge, Chromium

Any idea how to fix those problems?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [1 December 2022 06:04 UTC](https://discourse.nodered.org/t/node-red-contrib-themes-wont-install/71531/2 "2022-12-01T06:04:48Z")

</div>

> When I try to install @node-red-contrib-themes/theme-collection

from which directory did you execute the npm install ?

Do those themes even work for dashboard ?  
I thought those themes were only for the node-red editor and it requires a change in settings.js where you actually set the theme, eg.

```auto
editorTheme: {
    theme: "midnight-red-scroll"
},

```

and that will require a restart of node-red.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [1 December 2022 13:24 UTC](https://discourse.nodered.org/t/node-red-contrib-themes-wont-install/71531/3 "2022-12-01T13:24:55Z")

</div>

Indeed - the editor themes are nothing to do with the dashboard theme. As well as deploying you may have to fully reload the client web page - including possibly flushing the cache.

---

<div class="post-metadata">

**Author:** ![ptalbot](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@ptalbot](https://discourse.nodered.org/u/ptalbot)\
**Post date:** [1 December 2022 13:57 UTC](https://discourse.nodered.org/t/node-red-contrib-themes-wont-install/71531/4 "2022-12-01T13:57:24Z")

</div>

I ran the npm install from the /home/pi Is there a specific place to run npm?

For the Dark theme, it seem to work as shown in the video [Node-Red Dashboard Tutorial - YouTube](https://www.youtube.com/watch?v=X8ustpkAJ-U&t=208s) at time 3:54 and 4:08  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/3/d36cbc76ac90f64ecbd92e7e1117608fd410e6b9.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/f/7ff62918eeb5ba0daaca45864a2deffb432ad219.png)

Clearing and reloading the client web page doesn't fix the issue.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [1 December 2022 14:16 UTC](https://discourse.nodered.org/t/node-red-contrib-themes-wont-install/71531/5 "2022-12-01T14:16:37Z")

</div>

Not sure what your issue is now... that screenshot shows the default dark theme is working...

---

<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:** [1 December 2022 14:22 UTC](https://discourse.nodered.org/t/node-red-contrib-themes-wont-install/71531/6 "2022-12-01T14:22:11Z")

</div>

> [@ptalbot](#):
>
> I ran the npm install from the /home/pi Is there a specific place to run npm

You must run it from your .node-red folder (or the equivalent if you are using Docker or non-standard install).

---

<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:** [31 December 2022 14:22 UTC](https://discourse.nodered.org/t/node-red-contrib-themes-wont-install/71531/7 "2022-12-31T14:22:31Z")

</div>

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