Forum: PC Hard- und Software NodeRed auf RaspberryPi


von Johannes S. (Gast)


Angehängte Dateien:

Lesenswert?

oder 'und täglich grüßt das Murmeltier' :-(

Nachdem in der neuen c't auch ein guter Beitrag über NodeRed drin ist 
wollte ich es auch installieren für meine Homeautomation Basteleien.
Sollte ja nicht schwer sein nach diversen Anleitungen, aber ich bekomme 
es nicht installiert. Das install script läuft ohne Fehler durch, im log 
sind nur ein paar warnings beim Kompilieren eines Moduls. Nach 
'node-red-start' kommt aber immer wieder die Fehlermeldung 'Node-RED is 
not yet fully installed' und das Spiel geht von vorne los.
Verchiedene Reinigungsscripte haben keine Änderung gebracht, apt 
update&upgrade habe ich auch schon gemacht.
Eventuell ist mein System schon zu verbastelt, ich habe es von Jessie 
auf Stretch aktualisert. Aber eine Neuinstallation ist auch die Hölle 
wenn ich schon installierte Sachen auf einem frischen System haben 
möchte.
Hat jemand eine Idee woran das liegt?

Ausgabe vom install script:
1
pi@JojosRPi3-1:~ $ node-red-start
2
3
Node-RED is not yet fully installed
4
5
Fetching Node-RED update.
6
7
 
8
This script will remove versions of Node.js prior to version 6.x, and Node-RED and
9
if necessary replace them with Node.js 8.x LTS (carbon) and the latest Node-RED from Npm.
10
 
11
It also moves any Node-RED nodes that are globally installed into your user
12
~/.node-red/node_modules directory, and adds them to your package.json, so that
13
you can manage them with the palette manager.
14
 
15
It also tries to run 'npm rebuild' to refresh any extra nodes you have installed
16
that may have a native binary component. While this normally works ok, you need
17
to check that it succeeds for your combination of installed nodes.
18
 
19
To do all this it runs commands as root - please satisfy yourself that this will
20
not damage your Pi, or otherwise compromise your configuration.
21
If in doubt please backup your SD card first.
22
 
23
Are you really sure you want to do this ? [y/N] ? y
24
25
26
Running Node-RED update for user pi at /home/pi
27
28
This can take 20-30 minutes on the slower Pi versions - please wait.
29
30
  Stop Node-RED                       ✔
31
  Remove old version of Node-RED      ✔
32
  Remove old version of Node.js       -
33
  Update Node.js LTS                  ✔   Node v9.7.1   Npm 5.6.0
34
  Clean npm cache                     ✔
35
  Install Node-RED core               ✔   0.18.7 
36
  Move global nodes to local          -
37
  Install extra Pi nodes              -
38
  Npm rebuild existing nodes          ✔
39
  Add menu shortcut                   ✔
40
  Update systemd script               ✔
41
      id=Node-RED.desktop             
42
  Update update script                ✔
43
Any errors will be logged to   /var/log/nodered-install.log
44
45
46
All done.
47
  You can now start Node-RED with the command  node-red-start
48
  or using the icon under   Menu / Programming / Node-RED
49
  Then point your browser to localhost:1880 or http://{your_pi_ip-address}:1880
50
51
Started  Fr 6. Jul 18:57:57 CEST 2018  -  Finished  Fr 6. Jul 19:00:35 CEST 2018
52
53
Would you like to start Node-RED now (y/N) ? y
54
55
Node-RED is not yet fully installed
56
57
Fetching Node-RED update.

von T.roll (Gast)


Lesenswert?

Johannes S. schrieb:
> Any errors will be logged to   /var/log/nodered-install.log

Und schon mal reingeschaut?

von Johannes S. (Gast)


Lesenswert?

T.roll schrieb:
> Und schon mal reingeschaut?

natürlich nicht, log files ignoriere ich grundsätzlich.

nach viel herumprobieren hatte ich mit der deinstallation der folgenden 
Pakete Erfolg:
1
sudo apt-get remove nodered
2
sudo apt-get remove nodejs nodejs-legacy
3
sudo apt-get remove npm   # if you installed npm

das node-red install script hat dann seine gewünschen Versionen 
installiert und jetzt läuft es.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.