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

cant use in node 16+ #73

Open
Doris0812 opened this issue Sep 7, 2023 · 3 comments
Open

cant use in node 16+ #73

Doris0812 opened this issue Sep 7, 2023 · 3 comments

Comments

@Doris0812
Copy link

node-gyp error

@Doris0812
Copy link
Author

Does node capnp support running in the Electron environment? Why did I downgrade the node version to version 14+and place it in the Electron environment? The console reported an error of Uncaught (in promise) Error: Cannot find module 'capnp'

Requirement stack:

-Electron/js2c/renderer_ Init

@Doris0812
Copy link
Author

Error: capnp.node is missing. Try reinstalling node-capnp?
at Object. (D:\chrome下载\node-capnp-node14\node-capnp-node14\src\node-capnp\capnp.js:42:11)
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)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (D:\chrome\node-capnp-node14\node-capnp-node14\src\node-capnp\capnp-test.js:23:13)
at Module._compile (internal/modules/cjs/loader.js:778:30)
npm ERR! Test failed. See above for more details.

@kentonv
Copy link
Member

kentonv commented Sep 8, 2023

Unfortunately I don't really have time to bring node-capnp up to date.

It might be better to look at a pure-JavaScript capnp implementation, like: https://github.com/jdiaz5513/capnp-ts

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

2 participants