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

@oxc-resolver@5 dependency breaks npm postinstall on some Windows machines #915

Open
sdurnov opened this issue Mar 17, 2025 · 1 comment

Comments

@sdurnov
Copy link

sdurnov commented Mar 17, 2025

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:

Image

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.

@sdurnov
Copy link
Author

sdurnov commented Mar 17, 2025

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 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant