Installation nefit-easy-client -g and mp2 gives erros about node and npm version
If i try to install i get version errors that i to low versions, for example.:
pi@raspberrypi:~ $ sudo npm install robertklep/nefit-easy-client -g npm WARN deprecated [email protected]: this package is deprecated please use https://www.npmjs.com/package/@xmpp/client npm WARN deprecated [email protected]: this package is deprecated please use https://github.com/xmppjs/xmpp.js npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN engine [email protected]: wanted: {"node":">= 6"} (current: {"node":"4.4.5","npm":"2.15.5"}) npm WARN deprecated [email protected]: this package is deprecated please use https://github.com/xmppjs/xmpp.js npm WARN engine [email protected]: wanted: {"node":">=6"} (current: {"node":"4.4.5","npm":"2.15.5"}) npm WARN engine [email protected]: wanted: {"node":">=6"} (current: {"node":"4.4.5","npm":"2.15.5"}) npm WARN engine [email protected]: wanted: {"node":">=6"} (current: {"node":"4.4.5","npm":"2.15.5"})
But if i check both.:
pi@raspberrypi:~/nefit-easy-http-server $ node -v v13.9.0 pi@raspberrypi:~/nefit-easy-http-server $ ^C pi@raspberrypi:~/nefit-easy-http-server $ npm -v 6.13.7
Any help would be helpfully.
It looks like you have two versions of Node installed. Because you're using sudo in the first case and not in the second, you're getting two different version numbers.
Try to find out where the second executable is installed ($ which npm) and use its full path with sudo.
Alternatively, you can try sudo -E npm install …