openhab / openhabian

openHABian - empowering the smart home, for Raspberry Pi and Debian systems
https://community.openhab.org/t/13379
ISC License
818 stars 251 forks source link

JS Scripting Update always fails #1790

Closed miloit closed 1 year ago

miloit commented 1 year ago

Everytime when an update of JS Scripting is there I get this error due to the right how to solve it permanently?

sudo -u openhab mkdir -p /etc/openhab/automation/js
$ sudo -u openhab npm install --prefix /etc/openhab/automation/js openhab@latest
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /etc/openhab/automation/js/node_modules/openhab
npm ERR! dest /etc/openhab/automation/js/node_modules/.openhab-dwXzu3aM
npm ERR! errno -39
npm ERR! ENOTEMPTY: directory not empty, rename '/etc/openhab/automation/js/node_modules/openhab' -> '/etc/openhab/automation/js/node_modules/.openhab-dwXzu3aM'
npm ERR! A complete log of this run can be found in:
npm ERR!     /var/lib/openhab/.npm/_logs/2023-06-25T20_56_46_773Z-debug-0.log
FAILED (npm install)
mstormi commented 1 year ago

There have been changes to this some days ago so upgrade to 1.8 (on start of openhabian-config) and re-try

Always provide openHABian version details (branch, commit no.) please.

mstormi commented 1 year ago

we do not support manual installation / upgrading in openHABian if not done through openhabian-config

miloit commented 1 year ago

I am on the latest openhabian