NEWS
Z-Wave Installation
-
I updated NODE.JS to v10.16.0 on my X86 Linux Mint computer per following instructions:
sudo apt-get --purge remove node
sudo apt-get --purge remove nodejs
sudo apt-get autoremove
sudo reboot
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev libpam0g-dev nodejs
sudo reboot
cd /opt/iobroker
sudo npm rebuild
iobroker startNow I am trying to install Z-Wave adapter, see below installation log with errors and permission denied messages. What am I doing wrong?
$ ./iobroker add zwave --host ap-linux
NPM version: 6.9.0
npm install iobroker.zwave@1.4.1 --unsafe-perm --production --save --prefix "/opt/iobroker" (System call)
npm WARN rollback Rolling back iobroker.zwave@1.4.1 failed (this is probably harmless): EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.zwave/node_modules/openzwave-shared/build/Makefile'
npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/node_modules/clone-deep/package.json'npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/node_modules/prompt-base/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/node_modules/prompt-choices/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/node_modules/prompt-question/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/node_modules/readline-ui/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/node_modules/readline-utils/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/node_modules/shallow-clone/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/node_modules/static-extend/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/node_modules/window-size/package.json'npm ERR! path /opt/iobroker/node_modules/.iobroker.zwave.DELETE/open-zwave-1.4/ChangeLognpm ERR! code EACCES
npm ERR! errno -13npm ERR! syscall unlink
npm ERR! Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/.iobroker.zwave.DELETE/open-zwave-1.4/ChangeLog'npm ERR! { [Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/.iobroker.zwave.DELETE/open-zwave-1.4/ChangeLog']
npm ERR! cause:
npm ERR! { Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/.iobroker.zwave.DELETE/open-zwave-1.4/ChangeLog'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'unlink',
npm ERR! path:
npm ERR! '/opt/iobroker/node_modules/.iobroker.zwave.DELETE/open-zwave-1.4/ChangeLog' },
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/.iobroker.zwave.DELETE/open-zwave-1.4/ChangeLog'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'unlink',
npm ERR! path:
npm ERR! '/opt/iobroker/node_modules/.iobroker.zwave.DELETE/open-zwave-1.4/ChangeLog',
npm ERR! parent: 'iobroker' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).npm ERR! A complete log of this run can be found in:
npm ERR! /home/iobroker/.npm/_logs/2019-06-23T22_25_14_617Z-debug.logERROR: host.ap-linux Cannot install iobroker.zwave@1.4.1: 243
ERROR: process exited with code 25 -
@ap2017
You messed up the permissions when you ransudo npm rebuild
.sudo
should (almost) never be used together withnpm
anymore. You might want to read this (although it is in german):
https://forum.iobroker.net/topic/17109/wichtige-hinweise-bei-neueren-npm-versionen-und-sudoPlease run the installer fixer
curl -sL https://iobroker.net/fix.sh | bash -
and try installing zwave again.
-
@AlCalzone Thank you. I am getting message
bash: line 1: Moved: command not found
In response to the fixing script -
@ap2017 I am good, made an error is -sL, did not use capital L.
-
@AlCalzone Hello, I am trying to install ZWave on X64 Intel platform with Linux, getting some errors during installation of adapter, then errors during adapter start. I have controller 1.5.12, Node.js 10.16.0 and NPM 6.9.0
ZWave on X64 Intel.txtNever mind, after following https://github.com/ioBroker/ioBroker.zwave#known-issues everything starterd to work
-
@ap2017 Your adapter is still compiled against OZW 1.4:
2019-07-06 21:10:51.257 - error: zwave.0 uncaught exception: libopenzwave.so.1.4: cannot open shared object file: No such file or directory
2019-07-06 21:10:51.257 - error: zwave.0 Error: libopenzwave.so.1.4: cannot open shared object file: No such file or directoryPlease take a look at https://github.com/ioBroker/ioBroker.zwave/issues/57, specifically this comment:
https://github.com/ioBroker/ioBroker.zwave/issues/57#issuecomment-510884233