operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@1.0.0 start: `electron .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
2 Answers
It seems that electron is not installed yet. In order to run the electron command you need to have node and npm installed and configured correctly then run.
npm i -g electron

- 4,085
- 4
- 15
- 38
-
i am using ubuntu 16.06 i used your recommended command it's showing sh: 1: node: Permission denied i also used sudo npm i -g electron – JHM16 Apr 28 '19 at 04:33
-
doesnt work for me. would u mind checking out [my question over here please?](https://stackoverflow.com/q/59316390/7543162) <3 – oldboy Dec 29 '19 at 02:48
i tried almost everything but finally i able to solved it .
"electron-webpack-quick-start" setup everything for us we don't need to worry about installation of pacakges just run the command and have fun it worked for me.
- mkdir new-electron-webpack-project
cd new-electron-webpack-project
3.curl -fsSL https://github.com/electron-userland/electron-webpack-quick-start/archive/master.tar.gz | tar -xz --strip-components 1
git clone https://github.com/electron-userland/electron-webpack-quick-start.git
5.cd electron-webpack-quick-start
rm -rf .git
yarn
8.yarn dev
for more info read link below https://github.com/electron-userland/electron-webpack-quick-start

- 649
- 8
- 12