Closed NaridaL closed 4 years ago
6.x are OK.
When I use 'npm i elelctron@7.1.1' with ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/, it leads to a response code 404 not found error
Here is I how I fix it for temporary:
var path = mirrorVar('customDir', opts, details.version);
var path = mirrorVar('customDir', opts, details.version.replace(/v\./, '');
then run npm i electron@7.1.1
again.
@vingel
I test it just now. This method doesn't help me.
How about this issue's progress?
I can't reproduce this @NaridaL. I get the appropriate 404 error in console when I test on my machine.
@MarshallOfSound It can only be reproduced on windows
:tada: This issue has been resolved in version 1.7.4 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
After the issues in #124 I abandoned
electron-download
in favor of settingELECTRON_MIRROR="https://npm.taobao.org/mirrors/electron/"
as described in https://electronjs.org/docs/tutorial/installation#custom-mirrors-and-caches.After figuring out to also set
DEBUG=*
, I got the following log...It took setting a breakpoint on all exceptions, to figure out the underlying issue has nothing to do with permissions, but that the constructed URL is invalid, because
https://npm.taobao.org/mirrors/electron/
doesn't includev
s in front of the version! This leads to a HTTP 404, but it isn't logged anywhere.The docs should be improved and something done so that mirrors URLs can be used interchangeably, but in any case, electron/get needs to log HTTP errors.