hannseman / homebridge-mi-hygrothermograph

Homebridge plugin for the Xiaomi Mi Bluetooth Temperature and Humidity Sensor
MIT License
267 stars 52 forks source link

Error when installing plugin #42

Closed kamilzeliasz closed 5 years ago

kamilzeliasz commented 5 years ago

When I run "sudo npm install -g --unsafe-perm homebridge-mi-hygrothermograph" i got this error:

npm ERR! Linux 3.16.63-37 npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "--unsafe-perm" "homebridge-mi-hygrothermograph" npm ERR! node v8.10.0 npm ERR! npm v3.5.2 npm ERR! path /usr/local/lib/node_modules/.staging/assert-plus-d77bde99 npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall rename npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/assert-plus-d77bde99' -> '/usr/local/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/assert-plus' npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/assert-plus-d77bde99' -> '/usr/local/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/assert-plus' npm ERR! enoent This is most likely not a problem with npm itself npm ERR! enoent and is related to npm not being able to find a file. npm ERR! enoent

My platform: Odroid C2, Ubuntu 18.04, Node v8.10.0, NPM v3.5.2

hannseman commented 5 years ago

Looks like some issue related to npm even if it states otherwise, google the error and you’ll see other people having the same problem on other packages.

You’re running a very old npm-version (over 3 years old). The solution I’ve found is to upgrade npm. Upgrade npm and try again.