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 #1794

Closed miloit closed 12 months 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)

I use branch openhab3 and I am on latest openhabian....no Manual update or install all through the menu of openhabian and this was the debug lug for this error

mstormi commented 12 months ago

Github is for systemic openHABian software issues, not to individually support you and your system. Turn to the forum for help.