I can add the node-libcurl to package.json/yarn.lock by typing yarn add node-libcurl. But when going to the second phase electron-rebuild, it failed all the time. I tried many node versions with nvm from 10.11.0 to 13.5.0, all failed. I would doubt it is a electron-rebuild problem, but not sure. How to make it work with electron. Can someone fatcat give me a clue?
Failed to install node-libcurl for electron 5.0.10, both on mac and windows
344 views Asked by W.Perrin At
1
This happens because
yarn add node-libcurlis installing the prebuilt binary for the Node.js version you are using, and not for Electron.To use
node-libcurlwith electron the yarn command needs some extra environment variables, this is the command you should be running: