Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@electron-forge/maker-zip don't have v7.4.0, but it install it #3564

Open
3 tasks done
klren0312 opened this issue Apr 12, 2024 · 2 comments
Open
3 tasks done

@electron-forge/maker-zip don't have v7.4.0, but it install it #3564

klren0312 opened this issue Apr 12, 2024 · 2 comments
Labels
blocked/needs-repro Issues unable to be reproduced by maintainers bug import

Comments

@klren0312
Copy link

Pre-flight checklist

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

Electron Forge version

7.4.0

Electron version

29.3.0

Operating system

windows 10

Last known working Electron Forge version

No response

Expected behavior

An unhandled rejection has occurred inside Forge:
Error: Failed to install modules: ["@electron/fuses","@electron-forge/cli@^7.4.0","@electron-forge/maker-squirrel@^7.4.0","@electron-forge/maker-zip@^7.4.0","@electron-forge/maker-deb@^7.4.0","@electron-forge/maker-rpm@^7.4.0","@electron-forge/plugin-auto-unpack-natives@^7.4.0","@electron-forge/plugin-fuses@^7.4.0"]

With output: Command failed with a non-zero return code (1):
yarn add @electron/fuses @electron-forge/cli@^7.4.0 @electron-forge/maker-squirrel@^7.4.0 @electron-forge/maker-zip@^7.4.0 @electron-forge/maker-deb@^7.4.0 @electron-forge/maker-rpm@^7.4.0 @electron-forge/plugin-auto-unpack-natives@^7.4.0 @electron-forge/plugin-fuses@^7.4.0 --dev
yarn add v1.22.21
[1/4] Resolving packages...
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

error Couldn't find any versions for "@electron-forge/maker-zip" that matches "^7.4.0"
error Couldn't find any versions for "@electron-forge/maker-zip" that matches "^7.4.0"
at exports.default (D:\1project\electron-screen\node_modules\@electron-forge\core\dist\util\install-dependencies.js:52:19)   
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async _Task.task [as taskFn] (D:\1project\electron-screen\node_modules\@electron-forge\core\dist\api\import.js:172:29)

    at async _Task.run (D:\1project\electron-screen\node_modules\listr2\dist\index.cjs:2063:11)

Actual behavior

can init the forge

Steps to reproduce

run npx electron-forge import

Additional information

No response

@erickzhao
Copy link
Member

I think this might be a transient error with the npm registry or potentially a registry mirror if you're using one. I'm unable to reproduce with the following steps:

  1. Clone and install deps on electron/electron-quick-start.
  2. npm install --save-dev @electron-forge/cli.
  3. npx electron-forge import.
npx electron-forge import
✔ Checking your system
✔ Locating importable project
✔ Processing configuration and dependencies
  ✔ Installing dependencies
  ✔ Copying base template Forge configuration
  ✔ Fixing .gitignore
✔ Finalizing import

› We have attempted to convert your app to be in a format that Electron Forge
  understands.
  Thanks for using Electron Forge!

@erickzhao erickzhao added blocked/needs-repro Issues unable to be reproduced by maintainers bug import labels Apr 18, 2024
@erickzhao
Copy link
Member

@klren0312 Does it work now? If not, are you able to mkdir test123 && cd test123 && npm init -y && npm install --save-dev @electron-forge/maker-zip?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked/needs-repro Issues unable to be reproduced by maintainers bug import
Projects
None yet
Development

No branches or pull requests

2 participants