Fehler beim Start von npm: Unterschied zwischen den Versionen

Aus CyberWiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 1: Zeile 1:
zigbee2mqtt won't start after upgrade to version 1.5.1: Cannot find module 'zigbee-herdsman/dist/ziee' #1892<br />
''zigbee2mqtt won't start after upgrade to version 1.5.1: Cannot find module 'zigbee-herdsman/dist/ziee' #1892''<br />


'''Solution'''
'''Solution'''
Zeile 15: Zeile 15:
  $ rm -rf node_modules && npm install
  $ rm -rf node_modules && npm install
  $ npm start
  $ npm start
ACHTUNG: Funktioniert nur, wenn "npm audit fix" nicht durchgeführt wird!


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.

Aktuelle Version vom 17. Oktober 2019, 10:58 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

ACHTUNG: Funktioniert nur, wenn "npm audit fix" nicht durchgeführt wird!

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.