Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in v1.6 Cannot find module #2034

Closed
Radiotechniman opened this issue Sep 24, 2019 · 3 comments
Closed

Error in v1.6 Cannot find module #2034

Radiotechniman opened this issue Sep 24, 2019 · 3 comments

Comments

@Radiotechniman
Copy link

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

`> zigbee2mqtt@1.6.0 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! zigbee2mqtt@1.6.0 start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.6.0 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 Radiotechniman changed the title Error in v1.6 Error in v1.6 Cannot find module Sep 24, 2019
@AxHa2111
Copy link

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

zigbee2mqtt@1.6.0 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! zigbee2mqtt@1.6.0 start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.6.0 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 npm@6.9.0
3 info using node@v10.16.3
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle zigbee2mqtt@1.6.0prestart: zigbee2mqtt@1.6.0
6 info lifecycle zigbee2mqtt@1.6.0
start: zigbee2mqtt@1.6.0
7 verbose lifecycle zigbee2mqtt@1.6.0start: unsafe-perm in lifecycle true
8 verbose lifecycle zigbee2mqtt@1.6.0
start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/opt/zigbee2$
9 verbose lifecycle zigbee2mqtt@1.6.0start: CWD: /opt/zigbee2mqtt
10 silly lifecycle zigbee2mqtt@1.6.0
start: Args: [ '-c', 'node index.js' ]
11 silly lifecycle zigbee2mqtt@1.6.0start: Returned: code: 1 signal: null
12 info lifecycle zigbee2mqtt@1.6.0
start: Failed to exec start script
13 verbose stack Error: zigbee2mqtt@1.6.0 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 zigbee2mqtt@1.6.0
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 zigbee2mqtt@1.6.0 start: node index.js
22 error Exit status 1
23 error Failed at the zigbee2mqtt@1.6.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

@Koenkk
Copy link
Owner

Koenkk commented Sep 25, 2019

Duplicate of #1892, solution: #1892 (comment)

@Koenkk Koenkk closed this as completed Sep 25, 2019
@Radiotechniman
Copy link
Author

@AxHa2111 try this one
#1892 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants