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

Cannot install/use @matrix-org/matrix-sdk-crypto-nodejs from npm #842

Closed
Tracked by #236
turt2live opened this issue Jul 13, 2022 · 5 comments · Fixed by #844
Closed
Tracked by #236

Cannot install/use @matrix-org/matrix-sdk-crypto-nodejs from npm #842

turt2live opened this issue Jul 13, 2022 · 5 comments · Fixed by #844
Assignees
Labels
bindings bug Something isn't working

Comments

@turt2live
Copy link
Member

At runtime:

Cannot find module '@matrix-org/matrix-sdk-crypto-nodejs-win32-x64-msvc' from 'node_modules/@matrix-org/matrix-sdk-crypto-nodejs/index.js'

The readme for the bindings claims that it'll download the appropriate bindings, but it didn't, and we didn't publish the package referenced in the error (autogenerated by napi-rs), so they aren't retrievable.

@turt2live
Copy link
Member Author

to prove it's not a windows-only problem:

Cannot find module '@matrix-org/matrix-sdk-crypto-nodejs-linux-x64-gnu' from 'node_modules/@matrix-org/matrix-sdk-crypto-nodejs/index.js'

@gnunicorn
Copy link
Contributor

@turt2live did it install any library during installation?

@turt2live
Copy link
Member Author

sure didn't.

It looks like it's falling victim to npm/cli#3647 or yarnpkg/yarn#5476 (where output isn't reported - I can't tell if it's actually not running).

Manually opening the installed dependency (./node_modules/@matrix-org/matrix-sdk-crypto-nodejs) and running npm install yields this:

Downloading lib matrix-sdk-crypto.win32-x64-msvc.node from https://github.com/matrix-org/matrix-rust-sdk/releases/download/matrix-sdk-crypto-nodejs-0.1.0-beta.0/matrix-sdk-crypto.win32-x64-msvc.node
Download Failed Error: Response status was 404
Downloading lib matrix-sdk-crypto.linux-x64-gnu.node from https://github.com/matrix-org/matrix-rust-sdk/releases/download/matrix-sdk-crypto-nodejs-0.1.0-beta.0/matrix-sdk-crypto.linux-x64-gnu.node
Download Failed Error: Response status was 404

@turt2live
Copy link
Member Author

the download URL is missing the v on matrix-sdk-crypto-nodejs-v0.1.0-beta.0

@gnunicorn
Copy link
Contributor

yep. the tag has a v-prefix but the URLs don't. Will publish a beta.1 tomorrow with a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bindings bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants