01/10/2018, 11:58

Electron Npm start

Chuyện là mình mới vừa thử cái electron để viết desktop app, link tutorial :https://medium.freecodecamp.org/how-to-build-your-first-app-with-electron-41ebdb796930
nhưng khi run bằng lệnh npm start ( khi đang trong folder project của mình) thì lại xuất hiện lỗi như này
Mọi người có cao kiến gì không ạ!

npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
npm ERR! node v6.11.4
npm ERR! npm  v3.10.10
npm ERR! file C:Windowssystem32cmd.exe;https://github.com/electron/electron-quick-start
npm ERR! path C:Windowssystem32cmd.exe;https://github.com/electron/electron-quick-start
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn C:Windowssystem32cmd.exe;https://github.com/electron/electron-quick-start
npm ERR! electron-quick-start@1.0.0 start: `electron .`
npm ERR! spawn C:Windowssystem32cmd.exe;https://github.com/electron/electron-quick-start ENOENT
npm ERR!
npm ERR! Failed at the electron-quick-start@1.0.0 start script 'electron .'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the electron-quick-start package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     electron .
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs electron-quick-start
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls electron-quick-start
npm ERR! There is likely additional logging output above.
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
npm ERR! node v6.11.4
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! electron-quick-start@1.0.0 start: `electron .`
npm ERR! Exit status -4058
npm ERR!
npm ERR! Failed at the electron-quick-start@1.0.0 start script 'electron .'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the electron-quick-start package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     electron .
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs electron-quick-start
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls electron-quick-start
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:usermy_projectelectron-quick-start
pm-debug.log
Bài liên quan
0