-
Notifications
You must be signed in to change notification settings - Fork 5
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
Error: ENOENT: no such file or directory #12
Comments
Hey @jeemok sorry for the delay getting back to you! Feel free to @ mention me. I haven't tested it on Windows. If you don't mind writing the audit output to a file you could try something like: npm audit --json > npm-audit-output.json
audit-filter --nsp-config=.nsprc --audit=npm-audit-output.json Let me know if that works for you. |
This is also a bug. node.js's We can fix this with a runtime check either in node or rust. Compiling separate WASM modules for each platform would work too, but defeats the purpose of using WASM. |
We'll also need Windows CI to test this regression (possibly with appveyor). |
This is actually hardcoded at Line 30 in 6ad3345
edit: except there's no clear equivalent on windows hmm |
Any workaround until the bug is patched? |
@rakeshramakrishnan yep write to a tempfile as described in #12 (comment) |
The challenge is passing https://nodejs.org/api/process.html#process_process_stdin as https://doc.rust-lang.org/std/io/struct.Stdin.html (or a reference to it) across the wasm boundary and We'd probably want to check whether Alternatively, we could write a shim to save to a tempfile on windows, but that seems pretty gross. |
Thank you for the great package! I was trying to install it and use it on my project but couldn't seemed to get it working. The script and error is posted below. Sorry if I missed out any steps, please let me know!
Package.json
Error
The text was updated successfully, but these errors were encountered: