adblock-rust
adblock-rust copied to clipboard
change package.json generation script
I was running into an issue installing with windows 10, git-bash shell, and pnpm which uses symlinks. Reading up on the error and neon-cli. I think falling a build locally it will download and use the binary on github, though reading the guide it seems some github personal access token could be setup.
I'm using this local version on my machine. Just thought it could help others who run into the same issue.
https://neon-bindings.com/docs/publishing#1-upload-and-downloading-native-compiled-modules
node_modules/.pnpm/registry.npmjs.org/adblock-rs/0.2.9/node_modules/adblock-rs: Runnnode_modules/.pnpm/registry.npmjs.org/adblock-rs/0.2.9/node_modules/adblock-rs: Running install script, failed in 2s
.../0.2.9/node_modules/adblock-rs install$ neon build --release
│ neon info forcing rebuild for new build settings
│ neon info running cargo
│ Compiling cfg-if v0.1.10
│ Compiling smallvec v0.6.9
│ Compiling matches v0.1.8
│ Compiling siphasher v0.2.3
│ Compiling rustc-demangle v0.1.13
│ Compiling stable_deref_trait v1.1.1
│ Compiling ucd-util v0.1.3
│ Compiling lazy_static v1.4.0
│ Compiling dtoa v0.4.5
│ Compiling utf8-ranges v1.0.2
│ error: could not parse/generate dep info at: C:\Jono\Code\git--run\example-brows
│ Caused by:
│ failed to write `C:\Jono\Code\git--run\example-browsers\taiko\node_modules\.pn
│ Caused by:
│ The system cannot find the path specified. (os error 3)
│ warning: build failed, waiting for other jobs to finish...
│ error: build failed
│ neon ERR! cargo build failed
│ Error: cargo build failed
│ at Target.<anonymous> (C:\Jono\Code\git--run\example-browsers\taiko\node_mod
│ at step (C:\Jono\Code\git--run\example-browsers\taiko\node_modules\.pnpm\reg
│ at Object.next (C:\Jono\Code\git--run\example-browsers\taiko\node_modules\.p
│ at fulfilled (C:\Jono\Code\git--run\example-browsers\taiko\node_modules\.pnp
│ at processTicksAndRejections (internal/process/task_queues.js:97:5)
└─ Failed in 2s
ERROR Command failed with exit code 1.