Closed Stephen-Lamb closed 7 months ago
I am experiencing same error @Stephen-Lamb , did you found solution to this?
I did find a workaround. I put "npm Rebuild = false" in my package.json file. This stops electron builder from rebuilding native dependencies before packaging the app (which is where I think it was getting hung up). You can find documentation about this command at https://www.electron.build/configuration/configuration.html
@Stephen-Lamb seems like a possible solution for me too. Btw my findings are interesting too, when i run in terminal electron-builder --config config.json
it throws such error but when i run in terminal command npm exec -- electron-builder --config config.json
it works . When debugging i found some differences in env
param passed into spawn
in two mentioned commands.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue was closed because it has been stalled for 30 days with no activity.
Hi, I am trying to build my company's electron application, which uses electron-builder, using an Azure DevOps pipeline. However, when I run our "build-release" task in the pipeline I am getting the following error:
The project has an .npmrc file which contains the company's repository for node packages, which requires authentication to access. Earlier in the Azure DevOps pipeline I used the task "npmAuthenticate@0" so that the pipeline uses the correct authentication, but it looks like when electron-builder runs it is ignoring this, so authentication fails leading to the "npm login" error message. Any idea how I can resolve this? Thanks.
For reference, here is the Azure DevOps pipline yml file:
and here is the scripts section from the project's package.json file which details the scripts the pipeline is running: