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

Created on 3 Jul 2018  路  19Comments  路  Source: electron-userland/electron-forge

  • [x] I have read the contribution documentation for this project.
  • [x] I agree to follow the code of conduct that this project follows, as appropriate.
  • [x] 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

Most helpful comment

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.

All 19 comments

What's the version you're running? electron-forge --version

6.0.0-beta.19

Have you tried installing that module?

@electron-forge/maker-squirrel

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

Tried:
npm install -S @electron-forge/maker-squirrel@beta
and
npm install -S @electron-forge/maker-squirrel

Both installed, still no love. same error.

I can't reproduce this (running Node 10.2.1/NPM 6.1.0 on Linux). Also I'm not sure what -S does, it doesn't seem to show up in npm help install.

What do you get when you run npm list @electron-forge/maker-squirrel?

@electron-forge/[email protected]

AFAIK -S is the same as --save

Fixed in 74e6ac8d1652c81008a003c246a4a3f136156482

Thanks for the fix. What's the best way to use npm to pull the new code.
npm install -g @electron-forge/[email protected]
doesn't find the newest version and
npm install -g @electron-forge/cli@beta
sticks to beta 22.

Can you publish this newest code? I'm stuck at beta 22.

Looks like @MarshallOfSound accidentally (?) published beta.22 to @latest. beta.24 is currently @beta (go to https://www.npmjs.com/package/@electron-forge/cli & click the "Versions" tab)

Thanks. Running:
npm install -g @electron-forge/cli@beta
updated to 6.0.0-beta.24
still getting same error when I run electron-forge make

I get the same error when following the instructions at https://v6.electronforge.io/getting-started. Should this still be marked as fixed?

Updated to beta.28 and still get the same error.

@electric-drummer same problem. but when I update to beta.29, it works properly

I'm seeing the same behavior in beta.30

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.

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.

This works for me. Thank you.

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.

Thanks. Also running npm run make did the same as electron-forge make as I didn't appear to have it installed. 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 not find module with name: @electron-forge/maker-squirrel. However, if I re-install maker-squirrel as npm install --save-dev @electron-forge/[email protected] and re-run npm run make then I get an out folder with an exe.

Was this page helpful?
0 / 5 - 0 ratings