electron: [Bug]: Installing Electron 19.0.0 via npm returns a 404 error

Preflight Checklist

Electron Version

19.0.0

What operating system are you using?

Windows

Operating System Version

Windows 10 21H2

What arch are you using?

x64

Last Known Working Electron version

19.0.0

Expected Behavior

Electron 19.0.0 should be installed normally.

Actual Behavior

I’m getting the below installation problem on the console and the installation doesn’t proceed.

$ npm i electron
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/electron/-/electron-19.0.0.tgz - Not found
npm ERR! 404
npm ERR! 404  'electron@https://registry.npmjs.org/electron/-/electron-19.0.0.tgz' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\user\AppData\Local\npm-cache\_logs\2022-05-24T00_06_18_595Z-debug-0.log

How to Reproduce

  1. mkdir test && npm init.
  2. npm install electron

Testcase Gist URL

No response

Additional Information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 10
  • Comments: 24 (3 by maintainers)

Most upvoted comments

Temporary fix:

npm install --save-dev electron@18.2.4

Temporary fix:

npm install --save-dev electron@18.2.4

Version 18.3.0 is working fine 😃

Same with Yarn 1.x.

% yarn add -D electron

error An unexpected error occurred: "https://registry.yarnpkg.com/electron/-/electron-19.0.0.tgz: Request failed \"404 Not Found\"".