Asked 30+ days ago
11 Nov 2017
Views 166

denyy posted

Failed to run electron JS application

i was trying to use sqlite at electron js , but it was not working so i tried to solve it by following command

npm install --save electron-prebuilt

and now

npm start

give me new error

  return, stringToFlags(flags), mode);

Error: ENOENT: no such file or directory, open 'D:\test\node_modules\electron-prebuilt\path.txt'
    at Error (native)
    at Object.fs.openSync (fs.js:640:18)
    at Object.fs.readFileSync (fs.js:508:33)
    at Object.<anonymous> (D:\test\node\electron\test\node_modules\electron-prebuilt\index.js:4:42)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.require (module.js:483:17)
npm ERR! errno 1
npm ERR! electron-quick-start@1.0.0 start: `electron .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron-quick-start@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.

Mitul Dabhi

Mitul Dabhi
answered Feb 20 '18 20:17

may be electron-prebuilt is not installed properly

simple solution of this problem is try to remove electron-prebuilt

npm rm  electron-prebuilt

and try to install again

npm install  electron-prebuilt

Edit Answer
Post Answer