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

npm i ssb-validate2-rsjs-node fails #19

Open
frankiebee opened this issue Jan 11, 2023 · 5 comments
Open

npm i ssb-validate2-rsjs-node fails #19

frankiebee opened this issue Jan 11, 2023 · 5 comments

Comments

@frankiebee
Copy link

frankiebee commented Jan 11, 2023

npm i ssb-validate2-rsjs-node is failing to install

npm ERR! command failed
npm ERR! command sh -c -- node install.js
npm ERR! node:internal/errors:484
npm ERR!     ErrorCaptureStackTrace(err);
npm ERR!     ^
npm ERR! 
npm ERR! Error: spawn nj-cli ENOENT
npm ERR!     at ChildProcess._handle.onexit (node:internal/child_process:285:19)
npm ERR!     at onErrorNT (node:internal/child_process:483:16)
npm ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
npm ERR!   errno: -2,
npm ERR!   code: 'ENOENT',
npm ERR!   syscall: 'spawn nj-cli',
npm ERR!   path: 'nj-cli',
npm ERR!   spawnargs: [ 'build', '--release' ]
npm ERR! }
npm ERR! 
npm ERR! Node.js v19.0.0
@frankiebee
Copy link
Author

is it possibly my node version?

@frankiebee
Copy link
Author

or am i missing somthing?

@staltz
Copy link
Member

staltz commented Jan 12, 2023

You need node-bindgen (a Rust tool) or then use an older version of Node.js

@interfect
Copy link

I also have this problem on Node 21 (stable from NVM), trying to install Patchfox. Looks like the same issue as ssbc/ssb-db2#391

@soapdog should Patchfox list a particular Node version, or node-bindgen, as a dependency in the docs?

@Powersource
Copy link

I think the general advice is that this module should be considered deprecated. Generally to get around it I update different deps until this error goes away (because the deps stop depending on this at some point).

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

4 participants