question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build process gets stuck building native windows dependencies

See original GitHub issue
  • Version:

    • Node : 8.11.1
    • NPM : 5.6.0
    • Yarn : 1.6.0
    • electron : 1.8.3
    • electron-builder : 20.4.1
  • Target: Windows (NSIS)

  • Description: I am trying to build an application, built works great for linux and osx but gets stuck on windows. I don’t get any errors, the build process just stay in the step: rebuilding native dependency name=secp256k1 forever. Actualy I am not event building the app yet, just trying to run npm i or yarn.

  • Logs:

Build started
git config --global core.autocrlf input
git checkout -qf c0a029795ab91c46b5226ba31f940cd6e98ccc07
Running Install scripts
Install-Product node 8 x64
Uninstalling node 4.8.7 (x86)...
Installing node 8.11.1 (x64)...
yarn
yarn install v1.5.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info 7zip-bin-linux@1.3.1: The platform "win32" is incompatible with this module.
info "7zip-bin-linux@1.3.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info 7zip-bin-mac@1.0.1: The platform "win32" is incompatible with this module.
info "7zip-bin-mac@1.0.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.1.2: The platform "win32" is incompatible with this module.
info "fsevents@1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.1.3: The platform "win32" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info app-builder-bin-linux@1.7.2: The platform "win32" is incompatible with this module.
info "app-builder-bin-linux@1.7.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info app-builder-bin-mac@1.7.2: The platform "win32" is incompatible with this module.
info "app-builder-bin-mac@1.7.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > eslint-config-bloq@1.1.0" has incorrect peer dependency "eslint-config-standard@>= 11".
warning " > eslint-config-bloq@1.1.0" has unmet peer dependency "eslint-plugin-jsdoc@>= 3".
warning " > eslint-config-bloq@1.1.0" has incorrect peer dependency "eslint-plugin-node@>= 6".
[4/4] Building fresh packages...
success Saved lockfile.
$ electron-builder install-app-deps
  • electron-builder version=20.5.1
  • loaded configuration file=package.json ("build" field)
  • loaded parent configuration preset=react-cra
  • rebuilding native production dependencies platform=win32 arch=x64
  • rebuilding native dependency name=keccak
  • rebuilding native dependency name=websocket
  • rebuilding native dependency name=sha3
  • rebuilding native dependency name=secp256k1

Thanks a lot for your help.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
ianaya89commented, May 24, 2018

@ghadaghada

I could solve the issue doing the following:

  1. Install windows-build-tools as global dep: npm i -g --production windows-build-tools
  2. Remove node_modules and use yarn to install local deps.
  3. Set electron builder as debug mode using an env var: DEBUG=electron-builder
  4. Run build process using yarn.
0reactions
ghadaghadacommented, May 25, 2018

Thanks you, I added PYTHON to the Path. Then I executed the set DEBUG = electron-builder command and running yarn again but this error appears. capture

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - Stuck with Gradle Build Running - Stack Overflow
Actually it is not stuck. It takes more time to build. I have got almost 3 solutions that can fix the issue. Solution-1:....
Read more >
A Comprehensive Guide to Fixing Node-Gyp Issues on Windows
1. Try running npm install with the --no-optional flag. ... If you're lucky, the dependency that requires node-gyp will be optional, and you...
Read more >
Attempting to build on Windows - Development - Joplin Forum
Just gets stuck in some kind of infinite loop where it doesn't actually seem to finish doing anything after 10 mins. Going off...
Read more >
Troubleshooting build errors and crashes - Expo Documentation
If you are working on a managed app and the build error is a native error rather than a JavaScript error, this is...
Read more >
Improve the Performance of Gradle Builds
A build whose execution time is dominated by a single subproject won't benefit much at all. Niether will a project with lots of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found