AndrewLinden / xiaomi-zb2mqtt

Xiaomi Zigbee to MQTT bridge using zigbee-shepherd
GNU General Public License v3.0
98 stars 18 forks source link

root@raspberrypi:~/xiaomi-zb2mqtt# npm install doesn`t work #8

Open werty01 opened 6 years ago

werty01 commented 6 years ago

Hi, trieing to install npm i will get following error and i cannot find any solution. Thanks for your help

root@raspberrypi:~/xiaomi-zb2mqtt# npm install npm WARN package.json perfy@1.1.2 No README data /

serialport@4.0.7 install /root/xiaomi-zb2mqtt/node_modules/zigbee-shepherd/node_modules/cc-znp/node_modules/serialport node-pre-gyp install --fallback-to-build

sh: 1: node-pre-gyp: Permission denied npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian

npm ERR! serialport@4.0.7 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 127 npm ERR! npm ERR! Failed at the serialport@4.0.7 install script. npm ERR! This is most likely a problem with the serialport package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build npm ERR! You can get their info via: npm ERR! npm owner ls serialport npm ERR! There is likely additional logging output above.

npm ERR! System Linux 4.9.35-v7+ npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd /root/xiaomi-zb2mqtt npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /root/xiaomi-zb2mqtt/npm-debug.log npm ERR! not ok code 0

dgomes commented 6 years ago

you must not use user "root" just use user "pi"