Home > database >  How to upgrade my electron version from 6 to 9 to avoid errors
How to upgrade my electron version from 6 to 9 to avoid errors

Time:05-12

I would like to upgrade my electron version from 6 a stable version to 9 because of a problem with my api I have tryied npm fund and npm audit but it doesn't correct the problem may be someone have an other way to do that these are the errors I'm getting :

(electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently "false". It will change to be "true" in Electron 9. For more information please check https://github.com/electron/electron/issues/18397 node-pre-gyp info This Node instance does not support builds for Node-API version 6 node-pre-gyp info This Node instance does not support builds for Node-API version 6 node-pre-gyp info This Node instance does not support builds for Node-API version 6 node-pre-gyp info This Node instance does not support builds for Node-API version 6

CodePudding user response:

Within your package.json file (which should be at the root directory of your project), edit your devDependencies Electron version line to "electron": "^9.0.0" and save the file.

Next, open a command line at the root of your project and run npm install.

See Manually editing the package.json file for more information.

  • Related