question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue
  • 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

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
badger2013commented, May 18, 2021

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.

1reaction
maleptcommented, Jul 3, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find module with name: @electron-forge/maker ...
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...
Read more >
npm run make is not working in electron-forge - Stack Overflow
Another thing I noticed is that if I run npm run make with maker-squirrel at version 6.0.0-beta.55 then I get this error: Could...
Read more >
@electron-forge/maker-squirrel - npm
Start using @electron-forge/maker-squirrel in your project by running `npm i @electron-forge/maker-squirrel`. There are 4 other projects in ...
Read more >
@electron-forge/maker-squirrel | Yarn - Package Manager
@electron-forge/maker-squirrel builds a number of files required to distribute apps using the Squirrel.Windows framework. It generates a {appName} Setup.exe ...
Read more >
Electron Forge: Getting Started
Quickly scaffold an Electron project with a full build pipeline.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found