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

Problem installing. RPi3 latest raspibian lite #26

Closed
juantecnico opened this issue Sep 14, 2019 · 3 comments
Closed

Problem installing. RPi3 latest raspibian lite #26

juantecnico opened this issue Sep 14, 2019 · 3 comments
Labels

Comments

@juantecnico
Copy link

juantecnico commented Sep 14, 2019

Hi. have follow aguide to install zigbee2mqtt and i try to install zigbee-herdsman
I had cloned the git and try to install with npm install inside zigbee-herdsman directoy but this error always appears.

`

pi@raspberrypi:/opt/zigbee-herdsman $ sudo npm install
npm WARN tarball tarball data for typescript@3.5.3 (sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for typescript@3.5.3 (sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g==) seems to be corrupted. Trying one more time.
npm WARN tar ENOENT: no such file or directory, open '/opt/zigbee-herdsman/node_modules/.staging/fsevents-e48a7acc/node_modules/strip-ansi/index.js'
npm WARN tar ENOENT: no such file or directory, open '/opt/zigbee-herdsman/node_modules/.staging/fsevents-e48a7acc/node_modules/strip-ansi/license'
npm WARN tar ENOENT: no such file or directory, open '/opt/zigbee-herdsman/node_modules/.staging/fsevents-e48a7acc/node_modules/strip-ansi/package.json'
npm WARN tar ENOENT: no such file or directory, open '/opt/zigbee-herdsman/node_modules/.staging/fsevents-e48a7acc/node_modules/strip-ansi/readme.md'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/opt/zigbee-herdsman/node_modules/.staging/fsevents-e48a7acc/node_modules/abbrev' -> '/opt/zigbee-herdsman/node_modules/.staging/abbrev-00ac77d5'

npm ERR! code EINTEGRITY
npm ERR! Verification failed while extracting typescript@3.5.3:
npm ERR! Verification failed while extracting typescript@3.5.3:
npm ERR! sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g== integrity checksum failed when using sha512: wanted sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g== but got sha512-5w25EOryuAGqTJle2+AoxjNQqem3oGrGAk1iUSDyhMTt5cwLgQUoj8fDBfoRf2gMdnWHMXfOaM2z+W0Qf/8Hbg==. (2296540 bytes)

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-09-14T20_29_24_795Z-debug.log

Tried width differents SD cards. nothing helps.
Tried to install typescript, installation went ok but not help.

Thanks.

@john2exonets
Copy link

john2exonets commented Sep 28, 2019

+1 . Both typescript@3.5.3 and zigbee-herdsman@0.5.7 come up with corruption errors and won't install.
EDIT: I installed two packages first before running the zigbee2mqtt install, and that seemed to work:
npm install typescript@~3.5.3 --save
npm install zigbee-shepard-converters --save
npm install

This gives out a warning that typescript@3.6.3 is corrupted, but the install continues and doesn't give out any errors. This may not be the correct way to install zigbee2mqtt, but I at least got through the install. If I run into more issues, I'll come back here and update.

EDIT2: well, that didn't last too long. When starting:
Error: Cannot find module 'zigbee-herdsman/dist/depreciated/ziee'
...I have no 'depreciated' directory in 'dist'. The npm install command installed zigbee-herdsman@0.7.3
Now that I think about it, I may have hard coded that version in a previous attempt to make things work.
npm install zigbee-hersman@0.5.7 --save
This gave me some warnings about typescript-eslint, bl, and skipping some optional dependencies, but the install completed.
npm start
Yeah! getting status messages and I can see 'bridge' MQTT packets going out!!

@dartrax
Copy link

dartrax commented Oct 31, 2019

EDIT2: well, that didn't last too long. When starting:
Error: Cannot find module 'zigbee-herdsman/dist/depreciated/ziee'
...I have no 'depreciated' directory in 'dist'.

I have the same problem.

npm install zigbee-hersman@0.5.7 --save
This gave me some warnings about typescript-eslint, bl, and skipping some optional dependencies, but the install completed.
npm start
Yeah! getting status messages and I can see 'bridge' MQTT packets going out!!

This does not solve it for me. Still the same :(

I've uninstalled zigbee-herdsman for now and I needed to apply this fix to overcome the "Cannot find module 'zigbee-herdsman'" error I had after.

@stale
Copy link

stale bot commented Dec 31, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 31, 2019
@stale stale bot closed this as completed Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants