Donāt know if Iām right here, but I got the following message, when using āopenhabian-configā to upgrade all OS with āOption 02ā at the end:
npm notice
npm notice New major version of npm available! 10.9.7 -> 11.12.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.12.1
npm notice To update run: npm install -g npm@11.12.1
npm notice
I then run the above command, but got the the error-message:
I think you just let openHABian manage npm for you. You do not need to run any commands manually. Itās likely that openHABian is still on an older verison of NPM. The fact that thereās a newer version is not by itself a reason openHABian would upgrade.
When openHABian is ready to move to a newer npm, they will include that as part of the upgrade for you.
could you run the update again and tell me if the error is repeated?
I think the version comparison fails if the format of the version string is unexpected (itās comparing numbers). But if it was updated anyway it might be solved?
Well Iām not running an āupdateā as such, just running sudo openhabian-config.
When I run it now:
...
2026-04-25_15:07:25_BST [openHABian] Checking for updates of openhab for JS Scripting... npm notice
npm notice New major version of npm available! 10.9.7 -> 11.13.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.13.0
npm notice To update run: npm install -g npm@11.13.0
npm notice
No update available.
2026-04-25_15:07:25_BST [openHABian] Checking for updates of openhab_rules_tools for JS Scripting... No update available.
...
Because there is no update available, then line 380 of the bash script doesnāt run, so the error doesnāt appear.
npm is usually installed and updated with node. I wouldnāt update npm separately if itās not necessary (which usually isnāt the case).
The message can be suppressed by setting an environment variable (NPM_CONFIG_UPDATE_NOTIFIER). You can try a PR.