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

ci: Windows builds fail intermittently #595

Closed
rithvikvibhu opened this issue Jan 30, 2023 · 0 comments · Fixed by #632
Closed

ci: Windows builds fail intermittently #595

rithvikvibhu opened this issue Jan 30, 2023 · 0 comments · Fixed by #632

Comments

@rithvikvibhu
Copy link
Collaborator

No idea why.

npm ERR! gyp: C:\Users\runneradmin\.electron-gyp\22.0.3\common.gypi not found (cwd: D:\a\bob-wallet\bob-wallet\node_modules\bcrypto) while reading includes of binding.gyp while trying to load binding.gyp

example: https://github.com/kyokan/bob-wallet/actions/runs/4040964849/jobs/6947611019

full error
> Run `npm i`

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: mini-create-react-context@0.[4](https://github.com/kyokan/bob-wallet/actions/runs/4040964849/jobs/6947611019#step:5:5).1
npm WARN Found: react@18.2.0
npm WARN node_modules/react
npm WARN   react@"18.2.0" from the root project
npm WARN   10 more (@cfaester/enzyme-adapter-react-18, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^0.14.0 || ^1[5](https://github.com/kyokan/bob-wallet/actions/runs/4040964849/jobs/6947611019#step:5:6).0.0 || ^1[6](https://github.com/kyokan/bob-wallet/actions/runs/4040964849/jobs/6947611019#step:5:7).0.0 || ^1[7](https://github.com/kyokan/bob-wallet/actions/runs/4040964849/jobs/6947611019#step:5:8).0.0" from mini-create-react-context@0.4.1
npm WARN node_modules/react-router/node_modules/mini-create-react-context
npm WARN   mini-create-react-context@"^0.4.0" from react-router@5.3.3
npm WARN   node_modules/react-router
npm WARN 
npm WARN Conflicting peer dependency: react@17.0.2
npm WARN node_modules/react
npm WARN   peer react@"^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" from mini-create-react-context@0.4.1
npm WARN   node_modules/react-router/node_modules/mini-create-react-context
npm WARN     mini-create-react-context@"^0.4.0" from react-router@5.3.3
npm WARN     node_modules/react-router

> bob-wallet@1.0.0 postinstall
> electron-builder install-app-deps

  • electron-builder  version=23.6.0
  • loaded configuration  file=package.json ("build" field)
  • rebuilding native dependencies  dependencies=bcrypto@5.4.0, bdb@1.4.0, goosig@0.10.0, leveldown@5.6.0, mrmr@0.1.10, node-hid@2.1.2-hsd.0 platform=win32 arch=x64
  ⨯ cannot execute  cause=exit status 1
                    errorOut=npm ERR! code 1
    npm ERR! path D:\a\bob-wallet\bob-wallet\node_modules\bcrypto
    npm ERR! command failed
    npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild
    npm ERR! gyp info it worked if it ends with ok
    npm ERR! gyp info using node-gyp@9.1.0
    npm ERR! gyp info using node@16.19.0 | win32 | x64
    npm ERR! gyp info find Python using Python version 3.9.13 found at "C:\hostedtoolcache\windows\Python\3.9.13\x64\python3.exe"
    npm ERR! gyp http GET https://electronjs.org/headers/v22.0.3/node-v22.0.3-headers.tar.gz
    npm ERR! gyp http 200 https://artifacts.electronjs.org/headers/v22.0.3/node-v22.0.3-headers.tar.gz?force_headers_dist=1
    npm ERR! gyp http GET https://electronjs.org/headers/v22.0.3/SHASUMS256.txt
    npm ERR! gyp http GET https://electronjs.org/headers/v22.0.3/win-x[8](https://github.com/kyokan/bob-wallet/actions/runs/4040964849/jobs/6947611019#step:5:9)6/node.lib
    npm ERR! gyp http GET https://electronjs.org/headers/v22.0.3/win-x64/node.lib
    npm ERR! gyp http GET https://electronjs.org/headers/v22.0.3/win-arm64/node.lib
    npm ERR! gyp http 200 https://artifacts.electronjs.org/headers/v22.0.3/SHASUMS256.txt?force_headers_dist=1
    npm ERR! gyp http 200 https://artifacts.electronjs.org/headers/v22.0.3/win-x64/node.lib?force_headers_dist=1
    npm ERR! gyp http 200 https://artifacts.electronjs.org/headers/v22.0.3/win-x86/node.lib?force_headers_dist=1
    npm ERR! gyp http 200 https://artifacts.electronjs.org/headers/v22.0.3/win-arm64/node.lib?force_headers_dist=1
    npm ERR! gyp info find VS using VS2022 (17.4.33213.308) found at:
    npm ERR! gyp info find VS "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
    npm ERR! gyp info find VS run with --verbose for detailed information
    npm ERR! gyp info spawn C:\hostedtoolcache\windows\Python\3.[9](https://github.com/kyokan/bob-wallet/actions/runs/4040964849/jobs/6947611019#step:5:10).13\x64\python3.exe
    npm ERR! gyp info spawn args [
    npm ERR! gyp info spawn args   'C:\\hostedtoolcache\\windows\\node\\16.19.0\\x64\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
    npm ERR! gyp info spawn args   'binding.gyp',
    npm ERR! gyp info spawn args   '-f',
    npm ERR! gyp info spawn args   'msvs',
    npm ERR! gyp info spawn args   '-I',
    npm ERR! gyp info spawn args   'D:\\a\\bob-wallet\\bob-wallet\\node_modules\\bcrypto\\build\\config.gypi',
    npm ERR! gyp info spawn args   '-I',
    npm ERR! gyp info spawn args   'C:\\hostedtoolcache\\windows\\node\\16.19.0\\x64\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
    npm ERR! gyp info spawn args   '-I',
    npm ERR! gyp info spawn args   'C:\\Users\\runneradmin\\.electron-gyp\\22.0.3\\common.gypi',
    npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
    npm ERR! gyp info spawn args   '-Dvisibility=default',
    npm ERR! gyp info spawn args   '-Dnode_root_dir=C:\\Users\\runneradmin\\.electron-gyp\\22.0.3',
    npm ERR! gyp info spawn args   '-Dnode_gyp_dir=C:\\hostedtoolcache\\windows\\node\\16.19.0\\x64\\node_modules\\npm\\node_modules\\node-gyp',
    npm ERR! gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\runneradmin\\\\.electron-gyp\\\\22.0.3\\\\<(target_arch)\\\\node.lib',
    npm ERR! gyp info spawn args   '-Dmodule_root_dir=D:\\a\\bob-wallet\\bob-wallet\\node_modules\\bcrypto',
    npm ERR! gyp info spawn args   '-Dnode_engine=v8',
    npm ERR! gyp info spawn args   '--depth=.',
    npm ERR! gyp info spawn args   '--no-parallel',
    npm ERR! gyp info spawn args   '--generator-output',
    npm ERR! gyp info spawn args   'D:\\a\\bob-wallet\\bob-wallet\\node_modules\\bcrypto\\build',
    npm ERR! gyp info spawn args   '-Goutput_dir=.'
    npm ERR! gyp info spawn args ]
    npm ERR! gyp: C:\Users\runneradmin\.electron-gyp\22.0.3\common.gypi not found (cwd: D:\a\bob-wallet\bob-wallet\node_modules\bcrypto) while reading includes of binding.gyp while trying to load binding.gyp
    npm ERR! gyp ERR! configure error 
    npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
    npm ERR! gyp ERR! stack     at ChildProcess.onCpExit (C:\hostedtoolcache\windows\node\16.19.0\x64\node_modules\npm\node_modules\node-gyp\lib\configure.js:284:16)
    npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
    npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
    npm ERR! gyp ERR! System Windows_NT [10](https://github.com/kyokan/bob-wallet/actions/runs/4040964849/jobs/6947611019#step:5:11).0.20348
    npm ERR! gyp ERR! command "C:\\hostedtoolcache\\windows\\node\\[16](https://github.com/kyokan/bob-wallet/actions/runs/4040964849/jobs/6947611019#step:5:17).19.0\\x64\\node.exe" "C:\\hostedtoolcache\\windows\\node\\16.19.0\\x64\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
    npm ERR! gyp ERR! cwd D:\a\bob-wallet\bob-wallet\node_modules\bcrypto
    npm ERR! gyp ERR! node -v v16.19.0
    npm ERR! gyp ERR! node-gyp -v v9.1.0
    npm ERR! gyp ERR! not ok
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\npm\cache\_logs\2023-01-30T06_35_35_859Z-debug-0.log
    
                    command='C:\hostedtoolcache\windows\node\16.19.0\x64\node.exe' 'C:\hostedtoolcache\windows\node\16.19.0\x64\node_modules\npm\bin\npm-cli.js' rebuild bcrypto@5.4.0 bdb@1.4.0 goosig@0.10.0 leveldown@5.6.0 mrmr@0.1.10 node-hid@2.1.2-hsd.0
                    workingDir=
npm ERR! code 1
npm ERR! path D:\a\bob-wallet\bob-wallet
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c electron-builder install-app-deps

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\npm\cache\_logs\2023-01-30T06_32_29_9[17](https://github.com/kyokan/bob-wallet/actions/runs/4040964849/jobs/6947611019#step:5:18)Z-debug-0.log
Error: Process completed with exit code 1.

A couple of references:

https://github.com/AceCentre/EyeCommander/issues/51
https://forums.meteor.com/t/gyp-error-while-installing-bcrypt-on-windows/54643
https://github.com/serialport/node-serialport/issues/2322

https://github.com/nodejs/node-gyp/issues/2683
https://github.com/Seo-Rii/electron-acrylic-window/issues/84
https://github.com/nodejs/node-gyp/issues/2584
https://github.com/nodejs/node-gyp/issues/2714
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant