Error in v1.6 Cannot find module
Followed the complete instructions on the site, but when i run "npm Start" I get the following error.
I already tried a manual install and the rm -rf node_modules && npm install mentioned elsewhere, but the issue remains.
Looking at the error to me it looks like a depreciated module was referenced but has since been removed..
any help is appreciated
`> [email protected] start /opt/zigbee2mqtt
node index.js
internal/modules/cjs/loader.js:638 throw err; ^
Error: Cannot find module 'zigbee-herdsman/dist/deprecated/ziee'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2019-09-24T16_30_00_835Z-debug.log`
Hello, i have the same problem.
I try also : rm -rf node_modules && npm install. But no changes. Any idea?
=========================================== pi@SHD001:/opt/zigbee2mqtt $ npm start
[email protected] start /opt/zigbee2mqtt node index.js
internal/modules/cjs/loader.js:638 throw err; ^
Error: Cannot find module 'zigbee-herdsman/dist/deprecated/ziee'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2019-09-25T08_32_12_823Z-debug.log
LOG File:
0 info it worked if it ends with ok
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/opt/zigbee2$
9 verbose lifecycle [email protected]~start: CWD: /opt/zigbee2mqtt
10 silly lifecycle [email protected]~start: Args: [ '-c', 'node index.js' ]
11 silly lifecycle [email protected]~start: Returned: code: 1 signal: null
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: node index.js
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.node index.js
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
Duplicate of #1892, solution: https://github.com/Koenkk/zigbee2mqtt/issues/1892#issuecomment-527837064
@AxHa2111 try this one https://github.com/Koenkk/zigbee2mqtt/issues/1892#issuecomment-535003672