nefit-easy-http-server icon indicating copy to clipboard operation
nefit-easy-http-server copied to clipboard

Installation nefit-easy-client -g and mp2 gives erros about node and npm version

Open pascalbianca opened this issue 5 years ago • 1 comments

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.

pascalbianca avatar Feb 21 '20 18:02 pascalbianca

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 …

robertklep avatar Feb 21 '20 19:02 robertklep