-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Build hangs when rebuilding native when using npx only #6411
Comments
You can also try |
npm exec works! But in electron-builder npx is mentioned, so maybe this line should be changed to instead Line 44 in 93bf359
anyways it would be nice if:
this issue may be related to yarn workspaces btw (I get it when running inside a workspace subdir) |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Still an issue with npx |
Just hit this today. |
I have this issue too since upgrading from npm 14 to 16 |
Just encountered this today for myself.
Calling
|
"npm exec electron-builder" doesn't work on Windows and tries to open electron-builder.js in a file editor |
|
yes, that's the same, doens't change a thing |
I don't run Windows, but I remember it worker well on GH CI Windows image/env.
|
8.15.0 I confirm running "npm exec --package=electron-builder -- electron-builder" opens electron-builder.js in my notepad++ |
On windows I resorted to "./node-modules/.bin/electron-builder" to build using local installation |
I should add that I was trying to build on a Raspberry Pi running a linux distribution, since I needed a 32-bit ARM (armv7l) AppImage package. |
This is a different issue and is expected behavior, not related to electron-builder. Node seems to search the current directory for any executable script named electron-builder, so it pulls up electron-builder.js in notebad. Simple solution, rename your file electron-builder-config.js and pass it in with |
node14 is ok but node16 encounters this error, while execing so I use |
Same here:
Instead this works fine:
BTW I'm on Windows 10 from VSCode terminal |
just got the thing too, stuck after using npx electron-builder, using npm exec gives me error, i had to install electron builder globally and then it works |
Potentially related: #7090 |
I have same issue if i use npm exec i have error on rebuild native dependecies. on node v14 work good after migrate on v16 i have error. |
Try |
This has started happening to me in Github Actions after upgrade to latest on all packages. electron-builder: v23.6.0
Source: https://github.com/typerefinery-ai/typerefinery/actions/runs/4979950195/jobs/8912352154 Trying to install these packages globally. |
Oh gosh. I just tripped across this issue after being frustrated by this issue for days without knowing what I was doing wrong. I'd love to see a fix! |
I'm hitting this issue with GitHub Actions (using https://github.com/samuelmeuli/action-electron-builder). Locally, |
Have you tried |
Root cause npm/cli#6662 is now fixed in npm@10.1.0! |
...then the command hangs and never returns.
When restarting the build with
DEBUG
we can see this printed:It's trying to run npx-cli.js of the module rebuild which I think is not what is intented. So something seems to be wrong with the code trying to run
npm
.Instead running this command (without npx) yields a successful result:
The text was updated successfully, but these errors were encountered: