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

HTTPError: Response code 404 (Not Found) for https://github.com/castlabs/electron-releases/releases/download/v18.0.1/electron-v18.0.1-win32-x64.zip #128

Closed
ghost opened this issue Apr 17, 2022 · 6 comments

Comments

@ghost
Copy link

ghost commented Apr 17, 2022

npm install "https://github.com/castlabs/electron-releases#v18.0.4+wvcus" --save-dev

HTTPError: Response code 404 (Not Found) for https://github.com/castlabs/electron-releases/releases/download/v18.0.4/electron-v18.0.4-win32-x64.zip

does not define after +

it should be
https://github.com/castlabs/electron-releases/releases/download/v18.0.4+wvcus/electron-v18.0.4+wvcus-win32-x64.zip

What's the solution?

@khwaaj
Copy link
Collaborator

khwaaj commented Apr 17, 2022

We have seen this with older versions of npm, e.g. see #125, so upgrading to a later version should take care of it.

@ghost
Copy link
Author

ghost commented Apr 17, 2022

thanks. 6 hours wasted :D node js 17 solved everything :D thanks for your help

@ghost ghost closed this as completed Apr 17, 2022
@arcovoltaico
Copy link

node -v = v20.14.0
electron-packager-widevine ./

Response code 404 (Not Found) for https://github.com/castlabs/electron-releases/releases/download/v24.1.2/electron-v24.1.2-darwin-x64.zip

@khwaaj
Copy link
Collaborator

khwaaj commented Jul 30, 2024

node -v = v20.14.0 electron-packager-widevine ./

Response code 404 (Not Found) for https://github.com/castlabs/electron-releases/releases/download/v24.1.2/electron-v24.1.2-darwin-x64.zip

Do you have the correct version (with +wvcus) in your package.json? E.g:

  "devDependencies": {
    "electron": "github:castlabs/electron-releases#v24.1.2+wvcus",
  },

@arcovoltaico
Copy link

arcovoltaico commented Jul 30, 2024

yes, and I did run npm i. when I ran npm start:
node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Electron Framework' (no such file),
node_modules/electron/dist/Electron.app/Contents/MacOS/Electron exited with signal SIGABRT
ERROR: "electron:serve" exited with 1.
And I can see the 24.1.2+wvcus is installed in my app node_modules electron folder

The file is instead here:
node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework

so inside an extra Versions/A subfolders.

I have copied the content of A, 2 levels up.
Now when npm start I get:
/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Libraries/Squirrel.framework/Squirrel' (no such file)

and there's no trace of that Squirrel ...

@khwaaj
Copy link
Collaborator

khwaaj commented Jul 30, 2024

This is another known issue, one where symlinks in zip archives are not properly extracted. We have not been able to fix it since the problem seems to be in lower layers of the implementation and is intermittently triggered by certain zip archives.

There is a workaround in that thread, not very nice but it is what we have for now. Using a different version might also work since this problem only exists for some zip archives.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants