Fehler beim Start von npm

Aus CyberWiki
Zur Navigation springen Zur Suche springen

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.