Hello first post here so sorry if it’s not quite right. I wanted to update the homeassistant-web-socket package and was greeted with an error. Any package I update results from n the same error - unsurprisingly. It seems as though node red needs another update ? I am using supervised Core-2021.9.4 with node-red version 10.0.0 so the latest as far as I can tell.
If you are using the addon, the configuration page add the line fore safe mode. See documentation page. Once in safe mode you should be able to remove the problem node.
If stand alone version, use --safe with the start command.
Similar problem with a possibly different root cause for me (running Home Assistant 2022.7.7,
Supervisor 2022.07.0, Operating System 8.4 and Node-RED 3.0.1 add on).
For example, attempting to update the HA websocket node from the palette yields this set of errors:
2022-07-29T16:35:45.909Z Install : node-red-contrib-home-assistant-websocket 0.44.0
2022-07-29T16:35:47.176Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2022-07-29T16:35:47.629Z [err] npm
2022-07-29T16:35:47.630Z [err] WARN config
2022-07-29T16:35:47.630Z [err] production Use `--omit=dev` instead.
2022-07-29T16:35:49.938Z [err] npm ERR!
2022-07-29T16:35:49.938Z [err] code ENOTEMPTY
2022-07-29T16:35:49.938Z [err] npm
2022-07-29T16:35:49.938Z [err] ERR! syscall rename
2022-07-29T16:35:49.938Z [err] npm ERR! path /config/node-red/node_modules/node-red-node-email
2022-07-29T16:35:49.939Z [err] npm ERR! dest /config/node-red/node_modules/.node-red-node-email-9kimBKpy
2022-07-29T16:35:49.939Z [err] npm ERR! errno -39
2022-07-29T16:35:49.940Z [err] npm ERR! ENOTEMPTY: directory not empty, rename '/config/node-red/node_modules/node-red-node-email' -> '/config/node-red/node_modules/.node-red-node-email-9kimBKpy'
2022-07-29T16:35:49.941Z [err]
2022-07-29T16:35:49.941Z [err] npm ERR! A complete log of this run can be found in:
2022-07-29T16:35:49.941Z [err] npm
2022-07-29T16:35:49.941Z [err] ERR! /root/.npm/_logs/2022-07-29T16_35_47_588Z-debug-0.log
2022-07-29T16:35:49.952Z rc=217
I have exactly the same problem, with the same node even… A few other nodes as well. Can’t update them, always the same error pops up. Tried disabling the nodes and then updating, but the same thing happens.
Have you been able to fix the problem and can the Node-RED palette packages now be updated without errors?
I’m using Home Assistant 2022.10.2, Supervisor 2022.10.0, Operating System 9.0,Frontend 20221006.0 - latest with Node-RED 13.4.0 and have still problems with updating. It also makes no difference if I start Node-RED in safe mode.
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-nginx: starting
s6-rc: info: service init-customizations: starting
s6-rc: info: service init-customizations successfully started
s6-rc: info: service init-nodered: starting
patching file nodes/ui_base.html
Hunk #1 succeeded at 1164 (offset 633 lines).
s6-rc: info: service init-nginx successfully started
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: ‘[email protected]’,
npm WARN EBADENGINE required: { node: ‘^12.19.0 || ^14.15.0 || ^16.13.0’ },
npm WARN EBADENGINE current: { node: ‘v18.12.1’, npm: ‘9.1.2’ }
npm WARN EBADENGINE }
npm ERR! Cannot convert undefined or null to object
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-02-18T20_15_18_210Z-debug-0.log
[21:15:26] WARNING: Failed un-installing conflicting packages
s6-rc: info: service init-nodered successfully started
s6-rc: info: service nodered: starting
s6-rc: info: service nodered successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[21:15:27] INFO: Setting safe mode startup
[21:15:27] INFO: Starting Node-RED…