Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

npm run start-hot not working on Windows 10 #103

Closed
timc3 opened this issue Dec 14, 2015 · 9 comments
Closed

npm run start-hot not working on Windows 10 #103

timc3 opened this issue Dec 14, 2015 · 9 comments

Comments

@timc3
Copy link

timc3 commented Dec 14, 2015

When running the npm run start-hot it shows the Welcome to Electron screen telling me where to execute my code.

@jhen0409
Copy link
Member

@timc3 I run start-hot is worked on Windows 7, no Welcome to Electron screen. Maybe the . path is not work on Windows 10? but I haven't machine of Windows 10. :\

@neighborhood999
Copy link
Contributor

@jhen0409 Sorry. I misunderstanding timc3 problem!
yesterday, I got this error message, my PC is Win7:

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

then, i asked C.T.Lin, it's solved, need reinstall:
$ node node_modules/electron-prebuilt/install.js

@WMeldon
Copy link

WMeldon commented Dec 14, 2015

For whatever reason, changing the command to "command": "electron ./" was what fixed this for me.

@timc3
Copy link
Author

timc3 commented Dec 15, 2015

WMeldon actually has the solution (though I did upgrade all my devDependancies). Works on both OS X and Windows 10.

@timc3 timc3 closed this as completed Dec 15, 2015
@Semigradsky
Copy link

The same issue on Windows 10. Maybe update the README or package.json?

@chandu
Copy link

chandu commented Dec 19, 2015

@WMeldon : +1. Your solution works for me (Windows 10).

jhen0409 added a commit to jhen0409/electron-react-boilerplate that referenced this issue Dec 19, 2015
@Smurf-IV
Copy link

Smurf-IV commented Feb 6, 2016

Now appears to be broekn in Windows 8.1

D:\electron-react-boilerplate-master>npm run start-hot

> electron-react-boilerplate@0.7.1 start-hot D:\electron-react-boilerplate-maste
r
> cross-env HOT=1 NODE_ENV=development electron ./

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

Error: ENOENT: no such file or directory, open 'D:\electron-react-boilerplate-ma
ster\node_modules\electron-prebuilt\path.txt'
    at Error (native)
    at Object.fs.openSync (fs.js:584:18)
etc...

@chentsulin
Copy link
Member

Reinstall packages maybe solve your problem

rm -rf node_modules
npm install

@dunk3l
Copy link

dunk3l commented May 3, 2016

@chentsulin Your soulution works for me.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants