mapero / node-red-contrib-smartplug

MIT License
3 stars 4 forks source link

Error when I try to install it throught NPM #24

Closed melenaos closed 2 years ago

melenaos commented 2 years ago

I try to install the package using NPM and I get the following error:

npm WARN deprecated xmldom@0.1.31: Deprecated due to CVE-2021-21366 resolved in 0.5.0
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -2
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/mwittig/node-http-digest-client.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
melenaos commented 2 years ago

It was missing the git application!

I haven't encountered such a problem before, maybe because I always install Git in my development machine.

The solution is to run sudo apt install git, and try to install the npm agian