-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
node-gyp arm64 node.lib returns HTTP code 403 #1933
Comments
It'll be because of #1875. It looks like a 404 error code is handled but not 403: Lines 326 to 336 in 4fff845
cc @joaocgreis |
Confirming this error. log:
|
PR: #1934 |
@richardlau will the fix be deployed as a patch to |
Is there any workaround for this issue? |
Hello. I just tried installing the v6.0.1-proposal (which technically fixes this issue) and this error remains. System info: (Just in case I did something stupid) I just ran: Installing node-gyp was successful, but npm i failed with the 403 arms error |
@amknight you can get around this issue by using |
I think you'll also need to |
Yup, this worked, thanks! |
Hi, I have encounter the same issue. The issue popped up yesterday. Failed with exit code: 1 Error: gyp WARN install got an error, rolling back install Any help would be appreciated! |
Probably not the source of your problem but Python: 2.7.2 -- You really want to be >= 2.7.9 |
Same issue here, the proposed workarounds doesn't seem to work Win 10 X64 |
Manually set dependency version of node-gyp to electron-rebuild to v6.0.1 as a temporarily workaround See nodejs/node-gyp#1933
I installed 6.12.1 and hit the same issue (previous version installed was 6.9.0) |
This looks like a misconfiguration on the server which causes a 403 when accessing
Seems #1875 states that
which I assume v4.2.11 falls under. Is there any plan to fix the issue above mentioned by @richardlau? |
Getting the same error. node@12.13.0 |
I was able to work around by modifying the local node-gyp install.js Path: .\node_modules\node-gyp\lib\install.js (On Windows) I changed
to
i.e. I removed the arm64 arch. Obviously not a long term solution but it lets me make a little progress |
Yeah, that works for me. Thank you. But it seems like the arm64 file is missing on the server. |
Yes that's the root issue. Either the arm64 image is missing or the server is mis-configured. Either way it seems like a bug that needs to be resolved by node-gyp. It should gracefully handled the 403 as mentioned above. |
This should be fixed in node-gyp@6.0.1. @WelaurS @Ciriak and anyone else using 6.0.1, did you do
|
Just noticed in the Error log that my version is still 5.0.5 (despite having removed, reinstalled the @latest ), so my issue probably come from here 🤔 Edit : ok, i found the problem |
Deprecated: atom.io/download/electron Replace with: electronjs.org/headers The error I hit is downloading win-arm64, and I try to use the same link with win-x64 and win-ia32, |
I can confirm that version 6.0.1 fixes this issue for me. The latest LTS release of nodejs (12.13.0) comes with node-gyp 5.0.5. This is the version of node-gyp used to build native modules during an npm install. However I see this issue during Electron's rebuild of the native rebuild. The electron-rebuild.cmd uses the version of node-gyp in the local node_modules. Hence I can work around this by listing node-gyp 6.0.1 as a dependency in package.json. |
Hello Team I found one solution for this issue, just run the below command npm install sqlite3 --build-from-source --runtime-electron --target-|YOUR ELECTRON VERSION| --dist-url=https://atom.io/download/electron After running the above command, please run the - npm rebuild Please let me know if anyone is able to resolve the issue with my solution. Thanks |
This caused build fail on github action. see nodejs/node-gyp#1933 (comment)
This fixed the issue for me |
Thanks, this works for me |
This comment has been minimized.
This comment has been minimized.
For 403 error happen inside electron rebuild, you should update your electron-rebuild:
it works for me for electron-rebuild version 1.10.0 |
The only versions with this problem are 5.0.5 and 6.0.0. If you encounter this issue please upgrade to 5.0.6 or 6.0.1, which have a fix for this. |
I am experiencing this trying to retrieve: Using: node 13.8.0 Attempting to install a freaking spellcheck module for the latest release of ssb-patchwork. EDIT: Oh for chrissakes. This stupid thing won't build unless I run the build from a terminal within a graphical desktop. A TTY won't do. |
Hi, Am getting following error while installing electron on raspberrypi 4
kindly assist |
You should probably take that one up with the electron team. It looks like they do arm64 releases but I'm not sure why it's insisting on using an aarch64 identifier. But also, depending on the OS you're using maybe it should be using armv7, not arm64. 🤷 |
谢谢!这个多年前的回答帮到了我。 |
First off I don't know if it's an issue with node-gyp or another repo.
Anyway it seems that something changed. We can no longer build Electron project. Older version (meaning old checkout git SHA) that used to work no compiles because of the issue.
I can see that the issue is with
node.lib
where it start fetchingia32
,x64
andarm64
thenarm64
fails with http response403
.See below
gyp verb on Windows; need to download node.lib...
The response is
403
gyp http 403 https://electronjs.org/headers/v5.0.11/win-arm64/node.lib
Please see the log below.:
Verbose output (from npm or node-gyp):
Thanks in advance
The text was updated successfully, but these errors were encountered: