electron-releases
electron-releases copied to clipboard
Postinstall 404
I am getting this error on package install:
[4/4] Building fresh packages...
error ~/node_modules/electron: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: ~/node_modules/electron
Output:
HTTPError: Response code 404 (Not Found)
at Request._onResponseBase (~/node_modules/got/dist/source/core/index.js:913:31)
at Request._onResponse (~/node_modules/got/dist/source/core/index.js:948:24)
at ClientRequest.<anonymous> (~/node_modules/got/dist/source/core/index.js:962:23)
at Object.onceWrapper (node:events:635:26)
at ClientRequest.emit (node:events:532:35)
at origin.emit (~/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20)
at HTTPParser.parserOnIncomingClient (node:_http_client:704:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17)
at TLSSocket.socketOnData (node:_http_client:546:22)
at TLSSocket.emit (node:events:520:28)
Both npm and yarn fail on the same step (I cleaned the npm cache, deleted the node_modules directory and lock file between every try of this.)
If I go into the node_modules/electron
directory and yarn run postinstall
or node install.js
I get the same.
HTTPError: Response code 404 (Not Found)
at Request._onResponseBase (~/node_modules/got/dist/source/core/index.js:913:31)
at Request._onResponse (~/node_modules/got/dist/source/core/index.js:948:24)
at ClientRequest.<anonymous> (~/node_modules/got/dist/source/core/index.js:962:23)
at Object.onceWrapper (node:events:635:26)
at ClientRequest.emit (node:events:532:35)
at origin.emit (~/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20)
at HTTPParser.parserOnIncomingClient (node:_http_client:704:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17)
at TLSSocket.socketOnData (node:_http_client:546:22)
at TLSSocket.emit (node:events:520:28)
At first, digging around the posted issues I thought it was a git ssh issue as this did not work:
git --no-replace-objects ls-remote ssh://[email protected]/castlabs/electron-releases.git
as
ssh -T [email protected]
was being denied
But I generated a key, and now it works and returns the list along with the specific version I am targeting:
0a7b46f1b1300e4282f6dca0ee26f7e856141ccc refs/tags/v32.1.0+wvcus
The same exact package.json
install works on MacOS and Windows without issue with the same versions of Node and npm (I don't typically use yarn at all. Just tried it to see if it helped.) It also used to work previously on linux Mint (which I used for testing before I switched to Ubuntu.)
Here are my dependencies:
"devDependencies": {
"@electron/notarize": "^2.4.0",
"electron": "github:castlabs/electron-releases#v32.1.0+wvcus",
"electron-builder": "^25.0.5",
"electron-reloader": "^1.2.3"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.6.0",
"electron-updater": "^6.3.4"
}
Environment: OS: Ubuntu 24.04 Node: 22.8.0 npm: 10.8.3
I promise I have sufficiently banged my head on a wall and reviewed everything I could find under issues here or with git ssh, but I am at a loss. (To be clear, I don't see how this is a ssh problem, I just saw that in a recent issue and wanted to cover my bases.)
I would very much appreciate any insight!