NEWS
Javascript Adapter lässt sich nicht mehr installieren.
-
Hallo All,
ich hatte letzte Woche den BananaPi M2 Berry bekommen. Dort habe ich erfolgreich auf einen Raspbian Stretch System iobroker installiert.
Der P1 bekam sein Gnadenbrot. Aber trotzdem lief auch dort iobroker. Nur quälend langsam.
Nun war die micro SD Karte zu groß (32GB) und ich hatte keine andere. Heute wollte ich iobroker auf einer 8GB Karte wieder neu aufsetzen.
Das geht aber scheinbar nicht mehr gegenüber letzter Woche, weil npm > als 6.x.x sein muss. 4.6.1 scheitert jetzt.
Bis da alles trotzdem gut, halt npm auf die letzte Version geupdatet.
Was mir am Anfang nach der Installation aufgefallen ist, das der Autostart eingerichtet wurde,
===================================================
Write
systemctl daemon-reload
systemctl enable iobroker
systemctl start iobroker
to enable auto-start and to start ioBroker
===================================================
aber nicht geht.
Gut, dann halt Manuell gestartet.
Ich hatte ca. 10 Adapter installiert und nun wollte ich den Javascript installieren.
Dann kam das:
$ ./iobroker add javascript --host bpi-iobroker NPM version: 6.4.1 npm install iobroker.javascript --production --save --prefix "/opt/iobroker" (System call) npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) npm ERR! path /root/.npm/_logsnpm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall scandir npm ERR! Error: EACCES: permission denied, scandir '/root/.npm/_logs'npm ERR! { Error: EACCES: permission denied, scandir '/root/.npm/_logs' npm ERR! stack: 'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'', npm ERR! errno: -13,npm ERR! code: 'EACCES', npm ERR! syscall: 'scandir', npm ERR! path: '/root/.npm/_logs' } 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 the 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). glob error { Error: EACCES: permission denied, scandir '/root/.npm/_logs' stack: 'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'', errno: -13, code: 'EACCES', syscall: 'scandir', path: '/root/.npm/_logs' } npm ERR! path /root/.npm/_cacache/index-v5/fc/ee/fc3e1dd6706bd557d2840d92ff10cdd6928b92fb8c46d2195dfbd8d4b2benpm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall open npm ERR! Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/fc/ee/fc3e1dd6706bd557d2840d92ff10cdd6928b92fb8c46d2195dfbd8d4b2be'npm ERR! { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/fc/ee/fc3e1dd6706bd557d2840d92ff10cdd6928b92fb8c46d2195dfbd8d4b2be' npm ERR! cause: npm ERR! { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/fc/ee/fc3e1dd6706bd557d2840d92ff10cdd6928b92fb8c46d2195dfbd8d4b2be' npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'open', npm ERR! path: '/root/.npm/_cacache/index-v5/fc/ee/fc3e1dd6706bd557d2840d92ff10cdd6928b92fb8c46d2195dfbd8d4b2be' }, npm ERR! isOperational: true,npm ERR! stack: 'Error: EACCES: permission denied, open \'/root/.npm/_cacache/index-v5/fc/ee/fc3e1dd6706bd557d2840d92ff10cdd6928b92fb8c46d2195dfbd8d4b2be\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'open', npm ERR! path: '/root/.npm/_cacache/index-v5/fc/ee/fc3e1dd6706bd557d2840d92ff10cdd6928b92fb8c46d2195dfbd8d4b2be' } 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 the 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! code ELIFECYCLEnpm ERR! errno 243 npm ERR! iobroker.javascript@4.0.1 postinstall: `node ./install/installTypings.js`npm ERR! Exit status 243 npm ERR! npm ERR! Failed at the iobroker.javascript@4.0.1 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in:npm ERR! /root/.npm/_logs/2018-12-03T21_39_33_139Z-debug.log ERROR: host.bpi-iobroker Cannot install iobroker.javascript: 243 ERROR: process exited with code 25
Jetzt muss ich passen, da ich nicht weiter komme.
Große Karte steckt wieder…
node: 8.14.0
npm: 6.4.1
Gruß
Menne
-
Propier mal das,
! cd /opt/iobroker
! npm install iobroker.javascript@4.0.1
! iobroker update javascript -
Moin,
.Was mir am Anfang nach der Installation aufgefallen ist, das der Autostart eingerichtet wurde,
===================================================
Write
systemctl daemon-reload
systemctl enable iobroker
systemctl start iobroker
to enable auto-start and to start ioBroker
===================================================
aber nicht geht. `
da steht nichts von „eingerichtet wurde“, sondern es werden die Kommandos aufgelistet, die Du manuell ausführen musst, um den Autostart einzurichten („Write …. to enable ...“).Das ist übrigens der „alte Weg“ der Installation. Der neue ist im entspr. Posting beschrieben (als Bekanntmachung überall zu finden).
Du Deinem JavaScript-Problem:
Als welcher User hast Du die Installation durchgeführt?
Und in welchem Verzeichnis hast Du die Installation („npm ....“) ausgeführt?
Gruß,
Eric
Von unterwegs getippert
-
Die Installation wurde unter Adapter ausgeführt und
auch in der Konsole selbstverständlich mit sudo und im iobroker Verzeichnis.
Dann habe ich wohl letzte Woche den anderen Weg genommen.
Wer soll auf den Seiten schon den Überblick behalten.
Ich hatte ja schon geschrieben, das ich derartige Probleme letzte Woche nicht hatte
und brauchte keinen Autostart hinzufügen….sehr Komisch ist das...ich zweifel gerade an mir.
-
auch in der Konsole selbstverständlich mit sudo `
Und warum mit sudo? -
Da habe ich keine Antwort zu….
"Leute ich bin kein Anfänger".
Ich habe schon so manchen E2 Receiver aufgesetzt.
Zudem lief mein P1 auch schon über ein Jahr mit iobroker.
Ich bin nach dieser Anleitung gegangen
http://www.iobroker.net/docu/?page_id=5 ... #Allgemein
Bitte den anderen Link.
Es gibt für meinen Bananapi kein Image. Ihr könnt ja mal eins zur Verfügung stellen.
-
Ich hätte gern den anderen Link. `
Der „andere“ Link ist auf der Webseite von ioBroker zu finden.Ebenso in dem dazugehörigen Post von mir, der in jedem Unterforum hier ganz oben als Bekanntmachung gepinnt ist…..
Es gibt für meinen Bananapi kein Image. Ihr könnt ja mal eins zur Verfügung stellen. `
War das jetzt ein Angebot Deinerseits, ein Image zu erstellen?Gruß,
Eric
Von unterwegs getippert
-
Da läßt sich drüber schreiben.
-
Ist auch klar mit der neuen Anleitung….ist ja auch erst gestern erschienen.
Das ich da gestern noch nicht drüber gestolpert bin....sorry
-
Der Post ist von gestern 6:46 Uhr und im ganzen Forum als Bekanntmachung (in jedem Unterforunm) gepostet und gepinnt.
Zusätzlich und annähernd zeitgleich ist es als Ankündigung bei Facebook gepostet worden.
Eine Mailbenachrichtigung gibt es nicht werden wir auch nicht einrichten.
Mehr können wir nicht tun, außer auf den Lese- und Suchwillen der User appellieren.
Von unterwegs getippert
-
In Facebook bin ich nicht vertreten…
und ins Forum bin ich erst nach dem Desaster gegangen.
Da habe ich auch nicht geschaut, was da angepinnt wurde.
Ich mache euch doch auch keine Vorwürfe...ist halt dumm gelaufen.
...alles gut.
-
Das ist die Fehler Ausgabe nach einer Neu Installation vom Java Script Adapter:
$ ./iobroker add javascript --host bpi-iobroker NPM version: 6.4.1 npm install iobroker.javascript --production --save --prefix "/opt/iobroker" (System call) Unhandled rejection Error: EACCES: permission denied, mkdir '/home/iobroker' npm ERR! cb() never called! npm ERR! This is an error with npm itself. Please report this error at: npm ERR! <https: npm.community=""> host.bpi-iobroker install adapter javascript NPM version: 6.4.1 npm install iobroker.javascript --production --save --prefix "/opt/iobroker" (System call) Unhandled rejection Error: EACCES: permission denied, mkdir '/home/iobroker' npm ERR! cb() never called! npm ERR! This is an error with npm itself. Please report this error at: npm ERR! <https: npm.community=""> host.bpi-iobroker install adapter javascript NPM version: 6.4.1 npm install iobroker.javascript --production --save --prefix "/opt/iobroker" (System call) Unhandled rejection Error: EACCES: permission denied, mkdir '/home/iobroker' npm ERR! cb() never called! npm ERR! This is an error with npm itself. Please report this error at: npm ERR! <https: npm.community=""> host.bpi-iobroker install adapter javascript ERROR: host.bpi-iobroker Cannot install javascript ERROR: process exited with code 13</https:></https:></https:>
Ich werde jetzt via Konsole den Befehl von @Homer1976 ausführen
-
und das ist die Ausgabe via Konsole:
pi@bpi-iobroker:/opt/iobroker $ npm install iobroker.javascript@4.0.1 npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules npm ERR! path /opt/iobroker/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/opt/iobroker/node_modules' npm ERR! { Error: EACCES: permission denied, access '/opt/iobroker/node_modules' npm ERR! stack: 'Error: EACCES: permission denied, access \'/opt/iobroker/node_modules\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/opt/iobroker/node_modules' } 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 the 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-12-04T11_50_18_103Z-debug.log
btw…Normal editiere ich die Beiträge immer, nur möchte ich mit einem neuen Beitrag zum lesen hinweisen.
Anbei die Logs...
Habe jetzt test halber den Harmony Adapter installieren wollen...der steigt auch aus. Gestern gingen diverse noch zu insten.
Auch der Harmony...es waren ca. 10 Stück. Nur ging der Javascript nicht...
Ich fange nochmals von ganz vorne an...
6260_2018-12-03t21_25_13_477z-debug.log
6260_2018-12-04t11_50_18_103z-debug.log -
Bei der Installation von nodejs ist ein Fehler drin:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
Das große "L" ist falsch.
Das war gestern schon.
…und dort auch, bei der Installation von iobroker:
curl -sL https://raw.githubusercontent.com/ioBro ... staller.sh | bash -
-
-
Bei der Installation von nodejs ist ein Fehler drin:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
Das große "L" ist falsch.
Das war gestern schon.
…und dort auch, bei der Installation von iobroker:
curl -sL https://raw.githubusercontent.com/ioBro ... staller.sh | bash - `
Was ist da falsch? Und warum? -
Weil er bei mir gemotzt hat…
Sodas ich den Link ändern musste.
Ich saug mir sowas nicht aus den Fingern. Das ist Fakt.
-
Warum denn so gereizt? Hier will dir keiner auf die Füße treten. Nur Feedback ist für uns Entwickler deutlich hilfreicher wenn da nicht nur steht, dass etwas falsch ist und dass du etwas anders gemacht hast, sondern wenn du auch schreibst, was das Problem war (Fehlermeldung!) und wie du es behoben hast.
Zu deiner Aussage:
Der L-Parameter heißt erst mal nur, dass Weiterleitungen gefolgt werden soll, was durchaus Sinn macht.
Der ersten Befehl den du nennst, stammt übrigens 1:1 von den Machern der NodeJS-Installations-Skripte:
-
Gereizt, keine Ahnung, nur liest es sich als wenn man wie ein Newbie nicht voll genommen wird.
Ich werde mit der Installation ein paar Tage abwarten und nochmals probieren.
Dann nehme ich wieder den Original Link.
Iobroker ist derzeit gelöscht. (sudo rm -r iobroker)
-
Gereizt, keine Ahnung, nur liest es sich als wenn man wie ein Newbie nicht voll genommen wird. `
Wenn das so scheint, dann tut mir das leid.Aber wenn jemand sagt "XY ist falsch" ohne es zu begründen oder das Problem/die Fehlermeldung zu nennen, dann frage ich halt nach, um das Problem zu verstehen.
Ich weiß nämlich von anderen Leuten, dass bei ihnen die Befehle funktioniert haben.