forge: Could not find module with name: @electron-forge/maker-squirrel

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

Trying to use electron-build and I’m getting an error:

Could not find module with name: @electron-forge/maker-squirrel

This is an imported project on Mac and Windows, and I’m getting the same error on both platforms. If I edit my package.json and remove the squirrel maker, I get the same error with the next maker on the list.

Console output when you run electron-forge with the environment variable DEBUG=electron-forge:*. (Instructions on how to do so here). Please include the stack trace if one exists.

:\Users\Ben\Desktop\SCS_UL_win_new>electron-forge
WARNING: DEBUG environment variable detected.  Progress indicators will be sent over electron-forge:lifecycle
  electron-forge:async-ora Process Started: Checking your system +0ms
  electron-forge:check-system checking system, create ~/.skip-forge-system-check to stop doing this +0ms
  electron-forge:async-ora Process Succeeded: Checking your system -- after 1.1s +

What command line arguments are you passing?

electron-forge make .

What does your config.forge data in package.json look like?

"config": {
    "forge": {
      "packagerConfig": {},
      "makers": [
        {
          "name": "@electron-forge/maker-squirrel",
          "config": {
            "name": "electron_quick_start"
          }
        },
        {
          "name": "@electron-forge/maker-zip",
          "platforms": [
            "darwin"
          ]
        },
        {
          "name": "@electron-forge/maker-deb",
          "config": {}
        },
        {
          "name": "@electron-forge/maker-rpm",
          "config": {}
        }
      ]
    }
  }

Please provide either a failing minimal testcase (with a link to the code) or detailed steps to reproduce your problem. Using electron-forge init is a good starting point, if that is not the source of your problem.

If I create a simple new project I get the same error:

electron-forge init testingforge 
electron-forge make testingforge

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (6 by maintainers)

Most upvoted comments

I got the same error after following the “Getting Started” instructions. Nothing resolved it until I ran npm install -g @electron-forge/cli@beta – after that finished I was able to successfully run electron-forge make.

It’d probably have to be installed with the @beta tag?