Fehler beim Start von npm: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Geli (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Geli (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 10: | Zeile 10: | ||
the problem can be fixed by running the following commands: | the problem can be fixed by running the following commands: | ||
cd /opt/zigbee2mqtt | $ cd /opt/zigbee2mqtt | ||
git checkout npm-shrinkwrap.json | $ git checkout npm-shrinkwrap.json | ||
git checkout package.json | $ git checkout package.json | ||
rm -rf node_modules && npm install | $ rm -rf node_modules && npm install | ||
npm start | $ npm start | ||
For those who ran into this issues, did you follow the update commands of https://www.zigbee2mqtt.io/getting_started/running_zigbee2mqtt.html#6-for-later-update-zigbee2mqtt-to-the-latest-version? | For those who ran into this issues, did you follow the update commands of https://www.zigbee2mqtt.io/getting_started/running_zigbee2mqtt.html#6-for-later-update-zigbee2mqtt-to-the-latest-version? | ||
I will close this issue for know, if somebody else has the same issue but cannot fixed it by the above commands please comment here. | I will close this issue for know, if somebody else has the same issue but cannot fixed it by the above commands please comment here. |
Version vom 16. Oktober 2019, 20:48 Uhr
zigbee2mqtt won't start after upgrade to version 1.5.1: Cannot find module 'zigbee-herdsman/dist/ziee' #1892
Solution
Koenkk commented on 4 Sep
Together with @iz3man I found the cause of this problem. If git status shows the following: modified: npm-shrinkwrap.json modified: package.json the problem can be fixed by running the following commands:
$ cd /opt/zigbee2mqtt $ git checkout npm-shrinkwrap.json $ git checkout package.json $ rm -rf node_modules && npm install $ npm start
For those who ran into this issues, did you follow the update commands of https://www.zigbee2mqtt.io/getting_started/running_zigbee2mqtt.html#6-for-later-update-zigbee2mqtt-to-the-latest-version? I will close this issue for know, if somebody else has the same issue but cannot fixed it by the above commands please comment here.