# Failed to update a palette

**URL:** <https://discourse.nodered.org/t/failed-to-update-a-palette/39202>\
**Category:** General\
**Created:** [15 January 2021 21:55 UTC](https://discourse.nodered.org/t/failed-to-update-a-palette/39202 "2021-01-15T21:55:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mauog](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mauog/32/4679_2.png) [@mauog](https://discourse.nodered.org/u/mauog)\
**Post date:** [15 January 2021 21:55 UTC](https://discourse.nodered.org/t/failed-to-update-a-palette/39202/1 "2021-01-15T21:55:17Z")

</div>

I am trying to update the palette `node-red-contrib-home-assistant-websocket` from `0.37.8` to `0.30.1`  
Unfortunately I got this error:

```auto
2021-01-15T21:51:42.521Z Install : node-red-contrib-home-assistant-websocket 0.30.1

2021-01-15T21:50:55.998Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-home-assistant-websocket@0.30.1
2021-01-15T21:51:13.346Z [err] npm
2021-01-15T21:51:13.347Z [err] ERR! code EEXIST
2021-01-15T21:51:13.348Z [err] npm
2021-01-15T21:51:13.348Z [err] ERR! path
2021-01-15T21:51:13.348Z [err] /data/node_modules/.bin/mustache
2021-01-15T21:51:13.370Z [err] npm 
2021-01-15T21:51:13.370Z [err] ERR! Refusing to delete /data/node_modules/.bin/mustache: is outside /data/node_modules/mustache and not a link
2021-01-15T21:51:13.370Z [err] npm 
2021-01-15T21:51:13.370Z [err] ERR! File exists: /data/node_modules/.bin/mustache
2021-01-15T21:51:13.371Z [err] npm 
2021-01-15T21:51:13.371Z [err] ERR! Remove the existing file and try again, or run npm
2021-01-15T21:51:13.371Z [err] npm
2021-01-15T21:51:13.371Z [err] ERR!
2021-01-15T21:51:13.371Z [err] with --force to overwrite files recklessly.
2021-01-15T21:51:13.410Z [err] 
2021-01-15T21:51:13.411Z [err] npm ERR!
2021-01-15T21:51:13.411Z [err] A complete log of this run can be found in:
2021-01-15T21:51:13.411Z [err] npm ERR!
2021-01-15T21:51:13.411Z [err] /data/.npm/_logs/2021-01-15T21_51_13_387Z-debug.log
2021-01-15T21:51:13.455Z rc=1

```

I’m running node\_RED in a docker container using `image: nodered/node-red:latest` but I’m not an expert of npm.  
How cai I fix this problem?

Thank You

---

<div class="post-metadata">

**Author:** ![ManulMax](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manulmax/32/35633_2.png) [@ManulMax](https://discourse.nodered.org/u/ManulMax)\
**Post date:** [19 January 2021 22:18 UTC](https://discourse.nodered.org/t/failed-to-update-a-palette/39202/2 "2021-01-19T22:18:00Z")

</div>

Getting the same error when going to install arduino.

---

<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:** [20 January 2021 07:08 UTC](https://discourse.nodered.org/t/failed-to-update-a-palette/39202/3 "2021-01-20T07:08:00Z")

</div>

Welcome to the forum. Did you try the fix suggested in the error log?

---

<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:** [21 March 2021 07:08 UTC](https://discourse.nodered.org/t/failed-to-update-a-palette/39202/4 "2021-03-21T07:08:10Z")

</div>

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