velocityzen / homebridge-platform-zwave

Homebridge Platform for Z-Wave nodes. Deprecated! Use node-red instead.
MIT License
13 stars 6 forks source link

Plug-in won't install #11

Closed msbc42 closed 4 years ago

msbc42 commented 4 years ago

New HomeBridge install on Rpi3+.

OpenZwave 1.6 installed and MinOZW /dev/ttyACM0 completed with Aeon Z-Stick. Running sudo npm i -g homebridge-platform-zwave gives this output:

> openzwave-shared@1.7.0 preinstall /usr/local/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared
> node lib/install-ozw.js

> openzwave-shared@1.7.0 install /usr/local/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared
> node-gyp rebuild

gyp WARN EACCES current user ("nobody") does not have permission to access the dev dir "/root/.cache/node-gyp/12.17.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared/.node-gyp'
gyp ERR! System Linux 4.19.118-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-platform-zwave/node_modules/openzwave-shared
gyp ERR! node -v v12.17.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! openzwave-shared@1.7.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the openzwave-shared@1.7.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-06-08T03_28_32_701Z-debug.log
velocityzen commented 4 years ago

you shouldn't use sudo with npm install even when it's global. If your configuration doesn't allow that use nvm and install home bridge and this plugin in your environment.

Also your log says openzwave-shared@1.7.0 but you need to install OpenZwave 1.6 for the current version of this plugin