Error updating nodes.

How to go about fixing this problem, I can't update my nodes?

I have node-red integrated into my home assistant!

I'll put the error screen that appears in the log.


2022-10-21T18:37:12.188Z Install : node-red-contrib-home-assistant-websocket 0.46.1

2022-10-21T18:37:13.296Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-home-assistant-websocket@0.46.1
2022-10-21T18:37:21.167Z [err] npm
2022-10-21T18:37:21.172Z [err]
2022-10-21T18:37:21.172Z [err] WARN
2022-10-21T18:37:21.173Z [err]
2022-10-21T18:37:21.173Z [err] config
2022-10-21T18:37:21.174Z [err] production Use --omit=dev instead.
2022-10-21T18:37:41.593Z [err] npm
2022-10-21T18:37:41.594Z [err] ERR! code ENOTEMPTY
2022-10-21T18:37:41.595Z [err] npm ERR!
2022-10-21T18:37:41.596Z [err] syscall rename
2022-10-21T18:37:41.596Z [err] npm ERR! path /config/node-red/node_modules/firebase
2022-10-21T18:37:41.596Z [err] npm ERR! dest /config/node-red/node_modules/.firebase-NWDZ9oac
2022-10-21T18:37:41.598Z [err] npm ERR! errno
2022-10-21T18:37:41.598Z [err] -39
2022-10-21T18:37:41.606Z [err] npm ERR! ENOTEMPTY: directory not empty, rename '/config/node-red/node_modules/firebase' -> '/config/node-red/node_modules/.firebase-NWDZ9oac'
2022-10-21T18:37:41.615Z [err]
2022-10-21T18:37:41.616Z [err] npm ERR! A complete log of this run can be found in:
2022-10-21T18:37:41.616Z [err] npm ERR! /root/.npm/_logs/2022-10-21T18_37_20_829Z-debug-0.log
2022-10-21T18:37:41.671Z rc=217

This is an npm issue that has arisen occasionally recently. Delete that folder and try again. If you are using the node red plugin in HA then that folder might be inside the node red container, in which case you will have to work out where that is. If you can't find it then you might have to ask on an HA forum.

2 Likes