The http server should be running during the (post) installation of electron. You could use any http server you have access to, to serve localhost such nginx, apache2, or just node.js using the http package as described here: ![]() What I ended up quickly doing is just to serve the file from localhost, by running a simple temporary http server using http-server. Now type npm i electron, and it will download it.Įven though you don't have a mirror site that does not mean that you cannot serve the file: electron-v12.0.0-win32-圆4.zip. npmrc and write there: ELECTRON_MIRROR=" site/sandbox/electron/ Go to your project and create file called. Put the SHASUM256.txt and the zip file inside v13.1.2 folder. Inside sandbox create folder called electron, and inside electron create folder called v13.1.2. In jfrog artifactory create a "generic repository" for ex' called sandbox. Go to github and download SHASUM256.txt and electron-v13.1.2-win32-圆4.zip. (You can check it without copy to offline pc, by simply turn your internet access to flight mode and see it will go to cache)īut the real solution need to be with mirroring. Now in the offline pc, when you try to execute npm i electron. Everything there is important the Shasum256. So copy to your offline pc all the electron\Cache directory. In my windows pc its located in: C: \Users\baruch\AppData\Local\electron\Cache\some string This will cache the electron.zip in your computer. In computer with internet execute the command: npm i electron ![]() So to install electron offline, i recommend to do the following steps:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |