Hmmmm. There might be a bug. @florian-h05, is it possible that the Js Scripting add-on always expects there to be a node_modules folder? If so it should be created when the add-on is installed. If not do you have any ideas?
@milo, in the mean time, create that node_modules folder and see if the error goes away.
Be sure to restart openHAB just in case it won’t notice the folder is there until it restarts.
Just to eliminate one more thing, ssh to the machine and from the automation/js folder run npm install openhab_rules_tools. This should add a new folder to node_modules and create a couple of json files. This is my library and won’t force you to keep the openhab-js library up to date manually.
Right, but in the debugging I wanted @milo to install some NPM library. I chose to have him install mine instead of openhab so he can continue to get the updates with the add-on but still have the package.json and package-lock.json files get created.
The error is complaining that node_models is malformed so I’m grasping at straws.
@rlkoshak There was such a problem one time, but it was before my time as JS Scripting maintainer so I don’t have many information about this.
I am wondering why it still complains with the folder being created. there must be something wrong with the permissions or else.