electron / electron/forge

An unhandled rejection has occurred inside Forge: Error: Could not find module with name: @electron-forge/maker-squirrel. Make sure it's listed in the devDependencies of your package.json

Open
#2,656 17 comments 0 reactions 0 assignees View on GitHub
documentation maker/squirrel
Dominant language
TypeScript
Stars
7.1k
Forks
641
Avg merge
3d 17m
Merged PRs (30d)
32

Description

### Pre-flight checklist

- [X] I have read the [contribution documentation](https://github.com/electron-userland/electron-forge/blob/master/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [code of conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project uses.
- [X] I have searched the issue tracker for a bug that matches the one I want to file, without success.

### Electron Forge version

6.0.0-beta.61

### Electron version

16.0.5

### Operating system

Windows 10 (1803)

### Last known working Electron Forge version

6.0.0-beta.61

### Expected behavior

It would be packaged perfectly

### Actual behavior

![企业微信截图_16405900074480](https://user-images.githubusercontent.com/56915977/147446552-2499c734-adea-44d9-978f-47b3e5811545.png)
![企业微信截图_16405902305977](https://user-images.githubusercontent.com/56915977/147446924-b9b282ed-2a1c-408e-ada1-7f05ac146110.png)

After I installed electron and forge, I wanted to package after completing the instructions in the above figure, but I always got the above error:
An unhandled rejection has occurred inside Forge:
Error: Could not find module with name: @electron-forge/maker-squirrel. Make sure it's listed in the devDependencies of your package.json

Electron Forge was terminated. Location:
{}
But my package.json file shows that there is installation, as shown in another picture

### Steps to reproduce

I have tried this step many times, but I always report this error in the npm run make step.

### Additional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.