NEWS
Fehler bei npm Modulinstallation
-
Hallo liebe iobroker-Gemeinde,
bei der Installation von zusätzlichen NPM-Modulen im Javascript-Adapter (3.4.0) erhalte ich nach 3 Installationsversuchen im LOG den Fehler error "Cannot install npm packet: pg@6.4.0".
Weiß jemand Rat?
Gruß
Roland
-
Vollständiges log bitte?
-
Drücke Strg+A und danach Strg+C, um den Inhalt in die Zwischenablage zu kopieren. Klicke irgendwo, um das Fenster zu schliessen. javascript.0 2017-11-10 19:45:55.627 info requesting all objects javascript.0 2017-11-10 19:45:55.627 info requesting all states javascript.0 2017-11-10 19:45:55.626 error Cannot install npm packet: pg@6.4.0 javascript.0 2017-11-10 19:45:55.581 info pg@6.4.0 iobroker/node_modules/iobroker.javascript/node_modules/pg ├── packet-reader@0.3.1 ├── pg-connection-string@0.1.3 ├── buffer-writer@1.0.1 ├── semver@4.3.2 ├── pg-pool@1.8.0 (object-assign@4.1.0, generic-pool@2.4.3) ├── pg-types@1.12.1 (postgres-bytea@1.0.0, postgres-array@1.0.2, postgres-date@1.0.3, postgres-interval@1.1.1) └── pgpass@1.0.2 (split@1.0.1) javascript.0 2017-11-10 19:45:48.142 info npm install pg@6.4.0 --production --prefix '/opt/iobroker/node_modules/iobroker.javascript' (System call) javascript.0 2017-11-10 19:45:48.102 info pg@6.4.0 iobroker/node_modules/iobroker.javascript/node_modules/pg ├── packet-reader@0.3.1 ├── pg-connection-string@0.1.3 ├── buffer-writer@1.0.1 ├── semver@4.3.2 ├── pg-pool@1.8.0 (object-assign@4.1.0, generic-pool@2.4.3) ├── pg-types@1.12.1 (postgres-bytea@1.0.0, postgres-date@1.0.3, postgres-array@1.0.2, postgres-interval@1.1.1) └── pgpass@1.0.2 (split@1.0.1) javascript.0 2017-11-10 19:45:41.279 info npm install pg@6.4.0 --production --prefix '/opt/iobroker/node_modules/iobroker.javascript' (System call) javascript.0 2017-11-10 19:45:41.228 info pg@6.4.0 iobroker/node_modules/iobroker.javascript/node_modules/pg ├── packet-reader@0.3.1 ├── pg-connection-string@0.1.3 ├── buffer-writer@1.0.1 ├── semver@4.3.2 ├── pg-pool@1.8.0 (object-assign@4.1.0, generic-pool@2.4.3) ├── pg-types@1.12.1 (postgres-bytea@1.0.0, postgres-array@1.0.2, postgres-date@1.0.3, postgres-interval@1.1.1) └── pgpass@1.0.2 (split@1.0.1) javascript.0 2017-11-10 19:45:33.561 info npm install pg@6.4.0 --production --prefix '/opt/iobroker/node_modules/iobroker.javascript' (System call) javascript.0 2017-11-10 19:45:33.558 info starting. Version 3.4.0 in /opt/iobroker/node_modules/iobroker.javascript, node: v4.7.3 host.iobroker 2017-11-10 19:45:30.526 info instance system.adapter.javascript.0 started with pid 2049 host.iobroker 2017-11-10 19:45:28.124 info instance system.adapter.javascript.0 terminated with code 0 (OK) javascript.0 2017-11-10 19:45:28.047 info terminating host.iobroker 2017-11-10 19:45:27.992 info stopInstance system.adapter.javascript.0 killing pid 1884 host.iobroker 2017-11-10 19:45:27.990 info stopInstance system.adapter.javascript.0
Geändert: Code in Code-Tags; Homoran (Mod)
-
Das kann an der Node-Version 4.7.3 liegen. Bei mir sieht das Log (unter Win 7 / Node v6.11.1) anders aus:
javascript.0 2017-11-10 19:19:44.682 info `-- semver@4.3.2 javascript.0 2017-11-10 19:19:44.682 info | `-- through@2.3.8 javascript.0 2017-11-10 19:19:44.682 info | `-- split@1.0.1 javascript.0 2017-11-10 19:19:44.682 info +-- pgpass@1.0.2 javascript.0 2017-11-10 19:19:44.682 info | `-- xtend@4.0.1 javascript.0 2017-11-10 19:19:44.682 info | `-- postgres-interval@1.1.1 javascript.0 2017-11-10 19:19:44.682 info | +-- postgres-date@1.0.3 javascript.0 2017-11-10 19:19:44.682 info | +-- postgres-bytea@1.0.0 javascript.0 2017-11-10 19:19:44.682 info | +-- postgres-array@1.0.2 javascript.0 2017-11-10 19:19:44.682 info +-- pg-types@1.12.1 javascript.0 2017-11-10 19:19:44.682 info +-- pg-pool@2.0.3 javascript.0 2017-11-10 19:19:44.682 info +-- pg-connection-string@0.1.3 javascript.0 2017-11-10 19:19:44.682 info +-- packet-reader@0.3.1 javascript.0 2017-11-10 19:19:44.682 info +-- js-string-escape@1.0.1 javascript.0 2017-11-10 19:19:44.682 info +-- buffer-writer@1.0.1 javascript.0 2017-11-10 19:19:44.682 info `-- pg@7.4.0 javascript.0 2017-11-10 19:19:44.682 info iobroker.javascript@3.4.0 C:\Program Files\ioBroker\node_modules\iobroker.javascript j
-
Welche NODE-Version sollte ich denn auf dem Raspi verwenden?
-
-
Wobei bei npdejs v8 und höher npmv5.x mitgeliefert wird was wiederum zu problemen führen kann.
Dort sollte auf npm 3.x downgegradet werden.
Gruß
Rainer