zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Error in v1.6 Cannot find module

Open Radiotechniman opened this issue 7 years ago • 3 comments

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. (/opt/zigbee2mqtt/lib/zapp/cie.js:6:14) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: 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`

Radiotechniman avatar Sep 24 '19 16:09 Radiotechniman

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. (/opt/zigbee2mqtt/lib/zapp/cie.js:6:14) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: 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. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16) 13 verbose stack at EventEmitter.emit (events.js:198:13) 13 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:198:13) 13 verbose stack at maybeClose (internal/child_process.js:982:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 14 verbose pkgid [email protected] 15 verbose cwd /opt/zigbee2mqtt 16 verbose Linux 4.14.98-v7+ 17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" 18 verbose node v10.16.3 19 verbose npm v6.9.0 20 error code ELIFECYCLE 21 error errno 1 22 error [email protected] start: 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 ]

AxHa2111 avatar Sep 25 '19 09:09 AxHa2111

Duplicate of #1892, solution: https://github.com/Koenkk/zigbee2mqtt/issues/1892#issuecomment-527837064

Koenkk avatar Sep 25 '19 10:09 Koenkk

@AxHa2111 try this one https://github.com/Koenkk/zigbee2mqtt/issues/1892#issuecomment-535003672

Radiotechniman avatar Sep 25 '19 12:09 Radiotechniman