0

I am trying to create an electron app using react, with terminal integration.

I followed this tutorial to create basic react + electron (without the weather thingy): https://www.section.io/engineering-education/desktop-application-with-react/

I have these following:

OS: Windows11

Python: 3.10.7

Windows build tools: 2017 and 2022

Visual Studio: 2022 Community version

Npm config:

msvs_version = "2017"

msbuild_path = "C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin\MSBuild.exe"

Here is my package.json

 "dependencies": {
    ...
    "cross-env": "^7.0.3",
    "electron-rebuild": "^3.2.9",
    "electron-tools": "^2.4.2",
    "node-pty": "^0.10.1",
    "xterm": "^4.19.0"
  },
  "scripts": {
    ...
    "dev": "concurrently -k \"cross-env BROWSER=none npm start\" \"npm:electron\"",
    "electron": "wait-on tcp:3000 && electron .",
    "rebuild": "electron-rebuild"
  },
"devDependencies": {
    "concurrently": "^7.4.0",
    "electron": "^20.1.3",
    "electron-is-dev": "^2.0.0",
    "wait-on": "^6.0.1"
  }

However, when I run npm run rebuild I would get this error:

enter image description here

I have visual studio yet, it's saying it couldn't find it.

Thomas Dickey
  • 51,086
  • 7
  • 70
  • 105
jedion
  • 624
  • 1
  • 7
  • 18

0 Answers0