D:\nodework\securekit>npx electron .
D:\nodework\securekit>node index.js
D:\nodework\securekit\index.js:54
app.whenReady().then(() => {
^
TypeError: Cannot read properties of undefined (reading 'whenReady')
at Object.<anonymous> (D:\nodework\securekit\index.js:54:5)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)
at Module.load (node:internal/modules/cjs/loader:1205:32)
at Module._load (node:internal/modules/cjs/loader:1021:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:142:12)
at node:internal/main/run_main_module:28:49
Node.js v21.7.1