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

"npm run start" startup exception #3639

Open
3 tasks done
dreamOf opened this issue Jun 22, 2024 · 0 comments
Open
3 tasks done

"npm run start" startup exception #3639

dreamOf opened this issue Jun 22, 2024 · 0 comments

Comments

@dreamOf
Copy link

dreamOf commented Jun 22, 2024

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Electron Forge version

7.4.0

Electron version

31.0.2

Operating system

Windows 11(22631.3447)

Last known working Electron Forge version

No response

Expected behavior

"npmrun start" can start normally

Actual behavior

step1: npm init electron-app@latest my-app
step2: npm install electron-edge-js
step3:npm run start

After adding an “electron-edge-js” dependency to the project, an exception was triggered with the following information:
› Error: Could not find any Visual Studio installation to use
at VisualStudioFinder.fail (E:\test\electron-edge-js-quick-start\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
at E:\test\electron-edge-js-quick-start\node_modules\node-gyp\lib\find-visualstudio.js:75:16
at VisualStudioFinder.findVisualStudio2013 (E:\test\electron-edge-js-quick-start\node_modules\node-gyp\lib\find-visualstudio.js:380:14)
at E:\test\electron-edge-js-quick-start\node_modules\node-gyp\lib\find-visualstudio.js:71:14
at VisualStudioFinder.findVisualStudio2015 (E:\test\electron-edge-js-quick-start\node_modules\node-gyp\lib\find-visualstudio.js:364:14)
at E:\test\electron-edge-js-quick-start\node_modules\node-gyp\lib\find-visualstudio.js:67:12
at failPowershell (E:\test\electron-edge-js-quick-start\node_modules\node-gyp\lib\find-visualstudio.js:156:7)
at VisualStudioFinder.parseData (E:\test\electron-edge-js-quick-start\node_modules\node-gyp\lib\find-visualstudio.js:170:14)
at E:\test\electron-edge-js-quick-start\node_modules\node-gyp\lib\find-visualstudio.js:143:14
at ChildProcess.exithandler (node:child_process:414:7)
at ChildProcess.emit (node:events:518:28)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5)

An unhandled rejection has occurred inside Forge:
Error: node-gyp failed to rebuild 'E:\test\electron-edge-js-quick-start\node_modules\electron-edge-js'
at ChildProcess. (E:\test\electron-edge-js-quick-start\node_modules@electron\rebuild\lib\module-type\node-gyp\node-gyp.js:118:24)
at ChildProcess.emit (node:events:518:28)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)

Steps to reproduce

step1: npm init electron-app@latest my-app
step2: npm install electron-edge-js
step3:npm run start

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant