leapp icon indicating copy to clipboard operation
leapp copied to clipboard

Cannot build application on Windows 11, node-gyp errors in c++ build.

Open cmorrison-idea11 opened this issue 11 months ago • 1 comments

Describe the bug Node-gyp errors during desktop-app build.

I have visual studio 2022 with the Desktop development and Windows application development components installed.

Leapp Version Latest development branch from Github.

To Reproduce Steps to reproduce the behavior:

  1. Ensure VS and Python installed and working
  2. Checkout code
  3. Run npm run bootstrap
  4. The build fails building @noovolari\dpapi-addon

Expected behavior The build to succeed.

Screenshots Full build log attached to this issue.

Desktop (please complete the following information):

  • OS: Windows.
  • OS Version: 11
  • Leapp Version: Development branch
  • Node version: 23.6.0
  • Python version: 3.11.9

Additional context The build is being run in a brand new, clean VM.

Build log: 2025-01-20T02_47_24_728Z-debug-0.log

cmorrison-idea11 avatar Jan 20 '25 03:01 cmorrison-idea11

Hi @cmorrison-idea11, thanks for reaching out. Please check if node_modules are installed in the <PROJECT-ROOT>/dpapi_addon directory. If not, run npm install in that folder, then run npx node-gyp rebuild. Let me know if the dpapi_addon build process completes successfully

ericvilla avatar Jan 22 '25 16:01 ericvilla