NEWS
[gelöst] iobroker upgrade self bringt npm error
-
Hallo,
ich wollte js.controller updaten und bekam diese errors. Node habe ich als binary gezogen und nach /opt/node gepackt. Eigentlich lief alles, aber das update schlägt fehl.
Wie krieg ich das nu wieder hin?
pi@Raspberry:/opt/iobroker $ sudo ./iobroker upgrade self npm install iobroker.js-controller --production --prefix "/opt/iobroker" (System call) npm WARN deprecated localhost.daplie.com-certificates@1.2.5: Moved to localhost.daplie.me-certificates npm ERR! Linux 4.4.50+ npm ERR! argv "/opt/node/bin/node" "/opt/node/lib/node_modules/npm/bin/npm-cli.js" "install" "iobroker.js-controller" "--production" "--prefix" "/opt/iobroker" npm ERR! node v6.10.1 npm ERR! npm v3.10.10 npm ERR! path /opt/iobroker/node_modules/.staging/abbrev-bc1a4de2 npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall rename npm ERR! enoent ENOENT: no such file or directory, rename '/opt/iobroker/node_modules/.staging/abbrev-bc1a4de2' -> '/opt/iobroker/node_modules/npm/node_modules/abbrev' npm ERR! enoent ENOENT: no such file or directory, rename '/opt/iobroker/node_modules/.staging/abbrev-bc1a4de2' -> '/opt/iobroker/node_modules/npm/node_modules/abbrev' npm ERR! enoent This is most likely not a problem with npm itself npm ERR! enoent and is related to npm not being able to find a file. npm ERR! enoent npm ERR! Please include the following file with any support request: npm ERR! /opt/iobroker/npm-debug.log host.Raspberry Cannot install iobroker.js-controller: 254
Dank und Gruß vom
Jörg
-
Ein:
npm install iobroker.js-controller –production
war die Lösung