Fehler beim Start von npm: Unterschied zwischen den Versionen

Aus CyberWiki
Zur Navigation springen Zur Suche springen
K (Geli verschob die Seite Fehler beim Start nach Fehler beim Start von npm)
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
zigbee2mqtt won't start after upgrade to version 1.5.1: Cannot find module 'zigbee-herdsman/dist/ziee' #1892  
zigbee2mqtt won't start after upgrade to version 1.5.1: Cannot find module 'zigbee-herdsman/dist/ziee' #1892<br />


Solution
'''Solution'''
 
Koenkk commented on 4 Sep<br />
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


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?
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:44 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.