Failed to update a palette

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:

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

Getting the same error when going to install arduino.

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