josepramon / homebridge-mijia-camera

Homebridge plugin for the Xiaomi Mijia 1080P Smart IP Camera, also known as Mi Home Security Camera.
MIT License
38 stars 5 forks source link

node error #7

Open razvanu opened 5 years ago

razvanu commented 5 years ago

Can you help? I have a raspberry with jessie installed, and i have this error:

[2019-2-16 20:47:56] Plugin /usr/local/lib/node_modules/homebridge-mijia-camera requires Node version of >=8.10.0 which does not satisfy the current Node version of v8.2.1. You may need to upgrade your installation of Node. it was installed by this: sudo npm install -g homebridge-mijia-camera

10x

DJay-X commented 5 years ago

Did you upgrade to a newer version as mentioned by the homebridge log?

You could try..

  1. sudo systemctl stop homebridge
  2. sudo npm i -g npm
  3. sudo npm cache clean -f
  4. sudo npm install -g n
  5. sudo n stable
  6. sudo npm install -g --unsafe-perm homebridge@latest
  7. sudo reboot
  8. node -v

If problems occur..

cd /usr/local/lib/node_modules/ sudo npm rebuild --unsafe-perm

razvanu commented 5 years ago

it was ok? no errors ?