Openhabian-config (npm - update)

Configuration:

runtimeInfo:
  version: 5.1.3
  buildString: Release Build
locale: de-DE
systemInfo:
  configFolder: /etc/openhab
  userdataFolder: /var/lib/openhab
  logFolder: /var/log/openhab
  javaVersion: 21.0.10
  javaVendor: Eclipse Adoptium
  javaVendorVersion: Temurin-21.0.10+7
  osName: Linux
  osVersion: 6.12.62+rpt-rpi-2712
  osArchitecture: aarch64
  availableProcessors: 4
  freeMemory: 246294592
  totalMemory: 1076887552
  uptime: 15273
  startLevel: 100
addons:
  - automation-jsscripting
  - binding-amazonechocontrol
  - binding-astro
  - binding-avmfritz
  - binding-exec
  - binding-homematic
  - binding-http
  - binding-icalendar
  - binding-mail
  - binding-matter
  - binding-mqtt
  - binding-network
  - binding-ntp
  - binding-openweathermap
  - binding-sonos
  - binding-tr064
  - persistence-mapdb
  - persistence-rrd4j
  - transformation-basicprofiles
  - transformation-exec
  - transformation-jsonpath
  - transformation-map
  - transformation-regex
  - transformation-scale
  - transformation-xpath
  - transformation-xslt
  - ui-basic

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:

ohab@raspi58:~ $ sudo npm install -g npm@11.12.1
npm error code MODULE_NOT_FOUND
npm error Cannot find module 'promise-retry'
npm error Require stack:
npm error - /usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js
npm error - /usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/index.js
npm error - /usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/index.js
npm error - /usr/lib/node_modules/npm/node_modules/libnpmfund/lib/index.js
npm error - /usr/lib/node_modules/npm/lib/utils/reify-output.js
npm error - /usr/lib/node_modules/npm/lib/utils/reify-finish.js
npm error - /usr/lib/node_modules/npm/lib/commands/install.js
npm error - /usr/lib/node_modules/npm/lib/npm.js
npm error - /usr/lib/node_modules/npm/lib/cli/entry.js
npm error - /usr/lib/node_modules/npm/lib/cli.js
npm error - /usr/lib/node_modules/npm/bin/npm-cli.js
npm error A complete log of this run can be found in: /root/.npm/_logs/2026-04-10T11_11_22_636Z-debug-0.log
ohab@raspi58:

Is there anyone to help me solving this problem, as I’m a “Dummy”, and don’t know what to do.

Thx in advance

Cheers - Peter

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.

2 Likes

Hello Rich,

thx for answering and help.