Skip to content

npm run make successfully,but reporting an error cannot find module 'electron-squirrel-startup' #203

Open
@snowlotos

Description

I use the Windows system to download the official template: 'npm init electron-app@latest My new app - template=vite typescript', and 'npm start' runs successfully. Execute 'npm run make' and successfully generate the exe installable file. However, when clicking on the .exe file to install, an error message appears saying 'cannot find module' electron squirrel startup ', which prevents the installation
I changed my Mac computer, downloaded the official template again and executed 'npm run make'. It was able to generate the. app file normally, but clicking on the file installation still reported the same error.
I deleted the node_comodules folder and 'npm install' again, but the problem still hasn't been resolved.
I executed 'npm uninstall electron squirrel startup' to delete the file, and then 'npm install electron squirrel startup -- save' separately, but still did not solve the problem
May I ask how I can solve this problem
问题1
问题2

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions