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

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

Closed
3 tasks done
jooy2 opened this issue May 24, 2022 · 24 comments
Closed
3 tasks done

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

jooy2 opened this issue May 24, 2022 · 24 comments
Labels

Comments

@jooy2
Copy link

jooy2 commented May 24, 2022

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

@jooy2 jooy2 added the bug 🪲 label May 24, 2022
@andmm
Copy link

andmm commented May 24, 2022

Same issue here.

@MarshallOfSound
Copy link
Member

This appears to be a bug with the npm registry itself, it knows the version was published but can't download the tarball 🤔

@sprout2000
Copy link

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\"".

@theolivenbaum
Copy link

Same here

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/electron/-/electron-19.0.0.tgz
npm ERR! 404
npm ERR! 404  'electron@19.0.0' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url

@kunalfleethawks
Copy link

Same here. Our deployments are failing
image

@lestherbualan
Copy link

same here, throws error 404 when running 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 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

@leagug
Copy link

leagug commented May 24, 2022

same here

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 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git URL.

@andelf
Copy link

andelf commented May 24, 2022

Fixed temporily by adding the following rules to package.json, to lock electron version along all dependency paths:

  "resolutions": {
    "**/electron": "x.y.z" // replace this with current stable electron version
  }

@chrisclausen90
Copy link

Same for e as well. Calling the GET request URL is returning

{"error":"Not found"}

@antiyro
Copy link

antiyro commented May 24, 2022

Same here :, 404 not found error

@ghost
Copy link

ghost commented May 24, 2022

Same here.

@indingpig
Copy link

yeah……Same here.

@jane-pm
Copy link

jane-pm commented May 24, 2022

Same here. [Win11/MacOS/Ubuntu20]

@ashishsalve
Copy link

Same issue on MacOS

npm install electron --save-dev

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 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

@maximebaudoin
Copy link

Same issue on Win11. npm ERR! code E404

@langyo
Copy link

langyo commented May 24, 2022

Same here

I've tried to rewrite npm config and yarn config, but it still occured.

@ashishsalve
Copy link

Temporary fix:

npm install --save-dev electron@18.2.4

@t57ser
Copy link
Contributor

t57ser commented May 24, 2022

This is an issue with npm:
https://status.npmjs.org/incidents/4zkt80fxq1nb

@andmm
Copy link

andmm commented May 24, 2022

Temporary fix:

npm install --save-dev electron@18.2.4

Version 18.3.0 is working fine :)

@theRealinsane
Copy link

image
facing the same issue ;-;

@gaibz
Copy link

gaibz commented May 24, 2022

2022-05-24_19-51
I think some electron autobuild is not yet pushed to the npm registry ..
version 18.x work fine btw ..

@Fr4nZ82
Copy link

Fr4nZ82 commented May 24, 2022

its fixed... now it works

@tieb62
Copy link

tieb62 commented May 24, 2022

Solved @jooy2

@MarshallOfSound
Copy link
Member

NPM appears to have resolved this issue. In the future can we avoid a giant stream of "also broken for me" comments, they don't help especially when as originally commented there was nothing we could do about this particular issue.

@electron electron locked and limited conversation to collaborators May 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests