Closed huningxin closed 3 years ago
Run npm run electron throws error on Windows. The error is reported "Windows Script Host" as
npm run electron
It looks like the "Windows Script Host" would like to run electron.js.
electron.js
Renaming electron.js to other, e.g. main.js, fixes this issue.
main.js
In electron.js, the WEB_FOLDER should be docs instead of dist.
WEB_FOLDER
docs
dist
Run
npm run electron
throws error on Windows. The error is reported "Windows Script Host" asIt looks like the "Windows Script Host" would like to run
electron.js
.Renaming
electron.js
to other, e.g.main.js
, fixes this issue.In
electron.js
, theWEB_FOLDER
should bedocs
instead ofdist
.