First install NodeJS so that "npm" is in the $PATH.
Next download the debian package from here (and install it via "dpkg -i <deb_package>":
https://www.electronjs.org/fiddle
Then create a directory in your $HOME as "electron" and inside:
npm init (for more details see this: https://www.electronjs.org/docs/v14-x-y/tutorial/quick-start)
and the following file (package.json) will be created:
{
"name": "electron",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"electron": "^16.0.7"
}
}
Add the line "start": "electron ." in the script key-value pair as shown below:
(so that when we enter "npm start" the following command "electron ." will be executed)
npm install electron@latest (to install electron packages: https://www.electronjs.org/blog/electron-16-0)
From here:
https://www.electronjs.org/docs/latest/tutorial/examples
Create the three files in the electron directory: index.js (renamed from main.js), preload.js and index.html
Modify index.html to make it unique to yours and then enter "npm start", the following screen will popup:
After all the GUI windows created by NodeJS is close, there is still a lot of Electron Fiddle processes:
THis is weird.
You must be logged in to post a comment.