swc-node
swc-node copied to clipboard
@oxc-resolver@5 dependency breaks npm postinstall on some Windows machines
I have NX workspace, and @swc-node/register, @swc/core, @swc/helpers are deps added by NX at some point. Recently I was upgrading packages, and started getting this error during npm install:
This was really not easy to trace it to @swc-node/register, but I guess I did it. Can't reproduce on other Windows machine, but still.
Let me know if you need any additional info.
Let me also post part of the error text, so if someone has this issue, Google might index it
npm warn deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm warn cleanup Failed to remove some directories [
npm warn cleanup [
npm warn cleanup 'C:\\Projects\\frontends-monorepo\\node_modules\\@oxc-resolver\\binding-wasm32-wasi',
npm warn cleanup [Error: EPERM: operation not permitted, lstat 'C:\Projects\frontends-monorepo\node_modules\@oxc-resolver\binding-wasm32-wasi\node_modules\@napi-rs\wasm-runtime\dist\fs.js'] {
npm warn cleanup errno: -4048,
npm warn cleanup code: 'EPERM',
npm warn cleanup syscall: 'lstat',
npm warn cleanup path: 'C:\\Projects\\frontends-monorepo\\node_modules\\@oxc-resolver\\binding-wasm32-wasi\\node_modules\\@napi-rs\\wasm-runtime\\dist\\fs.js'
npm warn cleanup }
npm warn cleanup ]
npm warn cleanup ]