hassio-addons / addon-node-red

Node-RED - Home Assistant Community Add-ons
https://addons.community
MIT License
535 stars 125 forks source link

Can't update or install paletts anymore in V14.0.4 #1567

Closed Nicao closed 1 year ago

Nicao commented 1 year ago

Problem/Motivation

In Node-RED version 14.0.4 I can't install or update paletts anymore.

Expected behavior

New modules shall be installable or existing modules updatable through the built-in packet manager of Node-RED.

Actual behavior

Installations fails pointing out that this engine isn't supported.

Example of a new installation

2023-03-09T11:22:06.883Z Install : node-red-contrib-dotnsf-gpt35 1.1.5

2023-03-09T11:22:07.943Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-dotnsf-gpt35@1.1.5
2023-03-09T11:22:08.325Z [err] npm
2023-03-09T11:22:08.325Z [err]  WARN config production Use `--omit=dev` instead.
2023-03-09T11:22:09.813Z [err] npm ERR! code
2023-03-09T11:22:09.813Z [err]  EBADENGINE
2023-03-09T11:22:09.814Z [err] npm ERR! engine
2023-03-09T11:22:09.814Z [err]  Unsupported engine
2023-03-09T11:22:09.814Z [err] npm 
2023-03-09T11:22:09.814Z [err] ERR! engine Not compatible with your version of node/npm: node-red-contrib-dotnsf-gpt35@1.1.5
2023-03-09T11:22:09.814Z [err] npm ERR! notsup
2023-03-09T11:22:09.814Z [err]  Not compatible with your version of node/npm: node-red-contrib-dotnsf-gpt35@1.1.5
2023-03-09T11:22:09.814Z [err] npm ERR! notsup Required: {"node":"16.x"}
2023-03-09T11:22:09.814Z [err] npm ERR! 
2023-03-09T11:22:09.814Z [err] notsup Actual:   {"npm":"9.1.2"}
2023-03-09T11:22:09.816Z [err] 
2023-03-09T11:22:09.816Z [err] npm ERR! A complete log of this run can be found in:
2023-03-09T11:22:09.816Z [err] npm ERR!     /root/.npm/_logs/2023-03-09T11_22_08_298Z-debug-0.log
2023-03-09T11:22:09.825Z rc=1

Example of an update

2023-03-09T11:24:36.883Z Install : google-translate-tts 0.4.0-dev

2023-03-09T11:24:37.959Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict google-translate-tts@0.4.0-dev
2023-03-09T11:24:38.354Z [err] npm
2023-03-09T11:24:38.355Z [err]  WARN config production Use `--omit=dev` instead.
2023-03-09T11:24:39.745Z [err] npm
2023-03-09T11:24:39.745Z [err]  ERR! code ENOTEMPTY
2023-03-09T11:24:39.745Z [err] npm
2023-03-09T11:24:39.745Z [err]  ERR! syscall rename
2023-03-09T11:24:39.745Z [err] npm ERR! path
2023-03-09T11:24:39.745Z [err]  /config/node-red/node_modules/are-we-there-yet
2023-03-09T11:24:39.745Z [err] npm ERR! dest /config/node-red/node_modules/.are-we-there-yet-RUmkGoiI
2023-03-09T11:24:39.745Z [err] npm ERR! errno -39
2023-03-09T11:24:39.746Z [err] npm ERR! ENOTEMPTY: directory not empty, rename '/config/node-red/node_modules/are-we-there-yet' -> '/config/node-red/node_modules/.are-we-there-yet-RUmkGoiI'
2023-03-09T11:24:39.748Z [err] 
2023-03-09T11:24:39.748Z [err] npm ERR!
2023-03-09T11:24:39.748Z [err]  A complete log of this run can be found in:
2023-03-09T11:24:39.748Z [err] npm ERR!     /root/.npm/_logs/2023-03-09T11_24_38_328Z-debug-0.log
2023-03-09T11:24:39.756Z rc=217

Steps to reproduce

Try installing a new module via Node-RED Palette manager Environment:

Home Assistant 2023.3.2 Supervisor 2023.03.1 Operating System 9.5 Frontend 20230301.0 - latest

Proposed changes

No idea :)

frenck commented 1 year ago

2023-03-09T11:22:09.814Z [err] Not compatible with your version of node/npm: node-red-contrib-dotnsf-gpt35@1.1.5 2023-03-09T11:22:09.814Z [err] npm ERR! notsup Required: {"node":"16.x"}

That node isn't compatible with NodeJS 16, please remove it.

For the second error the instruction is in the error message:

2023-03-09T11:24:39.746Z [err] npm ERR! ENOTEMPTY: directory not empty, rename '/config/node-red/node_modules/are-we-there-yet'

Remove it and try again.

../Frenck