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

[Bug] An error when trying to install forge during import #3560

Open
3 tasks done
Fyphen1223 opened this issue Apr 6, 2024 · 2 comments
Open
3 tasks done

[Bug] An error when trying to install forge during import #3560

Fyphen1223 opened this issue Apr 6, 2024 · 2 comments
Labels
blocked/needs-info Issues lacking information for resolution import

Comments

@Fyphen1223
Copy link

Fyphen1223 commented Apr 6, 2024

Preflight Checklist

Electron Version

29.2.0

What operating system are you using?

Windows

Operating System Version

Windows 11

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

When trying to run this command
npx electron-forge import
from the get started page, I got this error:

An unhandled rejection has occurred inside Forge:
Error: Failed to install modules: ["electron-squirrel-startup"]

With output: Command failed with a non-zero return code (1):
npm install electron-squirrel-startup --save

npm ERR! Cannot read properties of null (reading 'matches')

Some error text are reducted due to privacy, if you need this for debugging, I'll post it as soon as possible.

Actual Behavior

Should just install the library that are necessary to compile the files.

Testcase Gist URL

No response

Additional Information

No response

@VerteDinde VerteDinde changed the title [Bug] An error when trying to install forge [Bug] An error when trying to install forge during import Apr 18, 2024
@erickzhao
Copy link
Member

@Fyphen1223 Are you able to npm install electron-squirrel-startup --save outside of the context of the import script?

@erickzhao erickzhao added the blocked/needs-info Issues lacking information for resolution label Apr 18, 2024
@Fyphen1223
Copy link
Author

Fyphen1223 commented Apr 19, 2024

@erickzhao
Thanks for the reply!
I actually have tried to install electron-squirrel-startup but I couldn't because of an error.
If you need the error log, I'll put that later (sry, I'm currently away with my PC)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked/needs-info Issues lacking information for resolution import
Projects
None yet
Development

No branches or pull requests

3 participants