-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[cannot execute] When pnpm build, occurred %1 is not a valid Win32 application #5638
Comments
The same questions, demo:https://github.com/v9u/sqlite_test |
fix way,open |
Thanks! You solved my question. I can build electron now. But it still has an error. I will use npm until pnpm solve it. |
Because |
I solved the problem,look: https://github.com/v9u/sqlite_test |
We may wait for pnpm's reply. |
Yes,but i think it is electron-builder's question,look this:https://www.electron.build/index.html#note-for-pnpm |
socket.io in electron ⨯ cannot execute cause=fork/exec C:\Users\10200362\AppData\Roaming\npm\node_modules\pnpm\bin\pnpm.cjs: %1 is not a valid Win32 application. this can be fixed in my windows by edit 'AppData\Roaming\npm\node_modules\pnpm\bin\pnpm.cjs', but how to let other users auto fix this, all users need change like this? |
thanks, this works for me 🙌 |
pnpm version:
7.16.0
Code to reproduce the issue:
https://github.com/kooriookami/electron-builder-pnpm
Expected behavior:
Run
pnpm build
no errors.Actual behavior:
Additional information:
Use sqlite3 in dependencies.
node -v
prints: v16.16.0The text was updated successfully, but these errors were encountered: