akshay
akshay

Reputation: 1

what I can when there is error while running electron app

I made my first electron app through electronjs documentation. I ran the application using npm start command, but that showing me this error

$ npm start

[email protected] start C:\Users\aksha\OneDrive\Desktop\ElcDocStarter\my-electron-app electron .

'electron' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `electron .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\aksha\AppData\Roaming\npm-cache\_logs\2021-02-17T08_15_08_284Z-debug.log

Upvotes: 0

Views: 771

Answers (1)

NullDev
NullDev

Reputation: 7303

Install electron as global NPM module:

npm i -g electron

Upvotes: 1

Related Questions