1npm i -D electron@latest
2# Electron 15.2.0
3# Node 16.5.0
4# Chromium 94.0.4606.81
1$ npm i -D electron@latest
2# Electron 11.2.1
3# Node 12.18.3
4# Chromium 87.0.4280.141
1<!DOCTYPE html>
2<html>
3<head>
4 <meta charset="UTF-8">
5 <title>Hello World!</title>
6 <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
7</head>
8<body style="background: white;">
9 <h1>Hello World!</h1>
10 We are using node <script>document.write(process.versions.node)</script>,
11 Chrome <script>document.write(process.versions.chrome)</script>,
12 and Electron <script>document.write(process.versions.electron)</script>.
13</body>
14</html>
15Copiar