electron-react-boilerplate: Cant run npm run dev. Give me a ENONT FILE error

I clone this repo, then “yarn it” and then run npm run dev as documentation said, but I still get the following error

fs.js:557
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open '/Users/myuser/Documents/Github/r-e-bp/node_modules/electron/path.txt'
    at Object.fs.openSync (fs.js:557:18)
    at Object.fs.readFileSync (fs.js:467:33)
    at Object.<anonymous> (/Users/myuser/Documents/Github/r-e-bp/node_modules/electron/index.js:4:42)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)

What could be this error?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

Try installing with npm instead of yarn