NEWS
MQTT Fehler bei Installation
-
Hey Leute,
Hab heute einmal Node aktualisiert, da ich noch eine sehr alte Version hatte.
Nun Habe ich:
pi@raspberry_io:~ $ npm -v 5.6.0 pi@raspberry_io:~ $ node -v v9.10.1
Nun Versuchte ich MQTT zu installieren, jedoch kam folgender Fehler:
> Fertig mit Fehler: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!NPM 5 is only supported starting with version 5.7.1! Please use "npm install -g npm@4" to downgrade npm to 4.x or use "npm install -g npm@>=5.7.1" to install a supported version of npm 5! You need to make sure to repeat this step after installing an update to NodeJS and/or npm !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Kann man da etwas dagegen machen, oder muss man Node wieder downgraden?
-
Kann man da etwas dagegen machen, oder muss man Node wieder downgraden? `
Wo gegen?die Anleitung steht doch in der Meldung
Was ergibt denn````
npm -vGruß Rainer
-
Gegen die Meldung ohne jetzt großartig zu doktorn
npm -v ergibt:
pi@raspberry_io:~ $ npm -v 5.6.0
-
du musst mindestens nmp 5.7.1 haben, aktuell ist npm 5.8.0 die latest.
Also schön artig sein und (fast das) tun was dir deine Meldung sagt
npm install -g npm@>latest
Dann kannst du sofort weitermachen
Gruß
Rainer
-
Also, dein Code funktioniert leider nicht, da wird folgender Error ausgeworfen:
pi@raspberry_io:~ $ npm install -g npm@>latest npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/np m npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! path /usr/local/lib/node_modules/npm npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/n pm' npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_module s/npm' npm ERR! stack: 'Error: EACCES: permission denied, access \'/usr/local/lib/nod e_modules/npm\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules/npm' } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check t he npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator (though this is not recommended ). npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2018-04-23T18_13_04_093Z-debug.log
Habe jetzt das zweite mal folgendes durchgeführt:
sudo npm cache clean -f sudo npm update npm -g sudo npm install -g n sudo n stable
Jetzt hat er auf einmal das richtige installiert:
npm -v: 5.8.0 node -v: v9.10.1
-
Also, dein Code funktioniert leider nicht, da wird folgender Error ausgeworfen: `
sorry, natürlich habe ich sudo vergessen und das < gehört da auch nicht mehr reinJetzt hat er auf einmal das richtige installiert: `
dann ist jetzt 5.8.0 im stable.aber du weisst das die ungeraden node-Versionen Entwicklerversionen sind?
Gruß
Rainer