Electron is a powerful framework that allows us to create desktop applications through web technologies using Node; apps are not native to desktop if you are not using Chromium which is an open source web browser.
The Electron team tends to update its framework frequently and go from one version to another and in this post we are going to see how we can update it to the latest version; the first thing you have to take into account is what version you are using; To see your version of Electron, just locate the package.json:
"dependencies": {
"axios": "^0.19.2",
"core-js": "^3.6.5",
"cors": "^2.8.5",
"electron-db": "^0.15.7",
"express": "^4.17.1",
"mysql": "^2.18.1",
"vue": "^2.6.12",
"vue-material": "^1.0.0-beta-15",
"vue-router": "^3.3.4"
},
And now, to update it, just run the following NPM command:
npm install electron@latest
And voila, this will be all; You have to take into account that you may have compatibility problems from one version to another and you may have to refactor your code.
Develop with Laravel, Django, Flask, CodeIgniter, HTML5, CSS3, MySQL, JavaScript, Vue, Android, iOS, Flutter