#Node-Red unable to update or install palettes

1 messages · Page 1 of 1 (latest)

devout berry
#

Hi all,
Each time I want to upgrade a node red palette or install a new one, I get the same error:

2025-10-27T00:36:50.224Z Install : @mschaeffler/node-red-bthome 1.4.3
2025-10-27T00:36:51.290Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --omit=dev --engine-strict @mschaeffler/node-red-bthome@1.4.3
2025-10-27T00:36:51.434Z [err] npm warn Unknown builtin config "globalignorefile". This will stop working in the next major version of npm.
2025-10-27T00:36:51.434Z [err] npm warn Unknown builtin config "python". This will stop working in the next major version of npm.
2025-10-27T00:36:51.434Z [err] npm warn Unknown env config "globalignorefile". This will stop working in the next major version of npm.
2025-10-27T00:36:51.434Z [err] npm warn Unknown env config "python". This will stop working in the next major version of npm.
2025-10-27T00:36:53.158Z [err] npm error code EBADENGINE
2025-10-27T00:36:53.159Z [err] npm error engine Unsupported engine
2025-10-27T00:36:53.159Z [err] npm error engine Not compatible with your version of node/npm: @azure/msal-node@1.17.3
2025-10-27T00:36:53.159Z [err] npm error notsup Not compatible with your version of node/npm: @azure/msal-node@1.17.3
2025-10-27T00:36:53.159Z [err] npm error notsup Required: {"node":"10 12 14 16 18"}
2025-10-27T00:36:53.159Z [err] npm error notsup Actual: {"npm":"11.3.0","node":"v22.16.0"}
2025-10-27T00:36:53.225Z [err] npm error A complete log of this run can be found in: /root/.npm/_logs/2025-10-27T00_36_51_369Z-debug-0.log
2025-10-27T00:36:53.266Z rc=1

Something seems to be wrong with NPM but I can't figure out what it is ... I can see that the log complains that my version is too recent
Anyone any idea's?
Regards, Chris.

ember shadow
#

is your ha install up-to-date?

devout berry
#

Yes, as far as I can see

ember shadow
#

looks good, but, have to pass to bigger brains here, hence i do not know anything about NodeRed/NPM 😉

#

done a reboot too i suppose?

devout berry
#

yep 🙃 didn't help

lyric vortex
#

Copying these from the original post in the other forum:

2025-10-27T00:36:53.159Z [err] npm error notsup Required: {"node":"10 || 12 || 14 || 16 || 18"}
2025-10-27T00:36:53.159Z [err] npm error notsup Actual:   {"npm":"11.3.0","node":"v22.16.0"}

your version of nodejs (not node-red itself) is too new for these packages 🙃 love this kind of error

So doing some research, that @azure/msal-node dependency isn't part of this package -- and if I'm understanding correctly, you're having this problem on basically any package installs. That one is Microsoft Authentication Library for Node (msal-node) so are you doing any sort of MS authentication -- in front of Node-RED, do you have any nodes installed that need to auth with MS, etc?

#

The solution to this is finding out what’s installed that has that dependency, and determine if it can be upgraded/removed

#

From the command line of your node-red install, you can get your dependency tree and find out where the offending library is being referenced

devout berry
#

Found the offending palette ... I had the MSSQL palette installed, but wasn't using it (yet)
Removed that palette and now I could upgrade everything else without any problems
I found this one through deduction, I still would want to be able to use your "NMPGraph"

#

This command "npm ls --prod > tree.txt" returns an error that npm is an unknown command

#

probably due to it being node-red within HA and not a native NR

lyric vortex
#

maybe node-red is running in docker? or maybe it's just not in the $PATH

#

try find / -type f -name npm to confirm if it shows up anywhere

devout berry
#

"find / -type f -name npm" doesn't return anything
Probably it's running in a docker, how do I get in there?

#

I was already in the docker through "docker exec -it $(docker ps -f name=homeassistant -q) bash"

#

In the normal shell it returned nothing either besides a few permissions denied
find: /proc/357451/task/357451/fdinfo: Permission denied
find: /proc/357451/fdinfo: Permission denied

#

doesn't seem like NPM is installed?