New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'electron' is not recognized as an internal or external command #13535
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines. |
@tinomhishi This sounds like you have not installed Electron globally. You haven't filled out the steps to reproduce either here so we can't really help. In order to run the electron command you need to have npm i -g electron |
Hello, I'm following these steps but after "npm install" i got an error message like this:
|
I am going through a tutorial and trying to use electron with nodemon to watch for changes to the main file but when I run the watch command it comes up as 'electron .' not recognized as a command. I have electron 5.0.0 and nodemon 1.18.9 as devDependencies. Electron is installed globally and nodemon is set as a watch in the package.json. I can run the 'electron .' command from the terminal but it still is not recognizable as a command when nodemon tries to execute on it. Here is a linke to the repo I downloaded for the tutorial https://github.com/stackacademytv/master-electron |
hey remove the single just put this line "watch": "nodemon --exec electron ." |
@MahmudulHassan5809 Thank you, your fix worked. Much appreciated. |
legit |
works fr, thank you so much ! |
For those who will find this for case Windows + WSL/ In my case I installed Electron on the Windoes side - at this moment I don't understand why It can't work with installation on Linux side, but after this trick I can start my app on both sides. Hope it'll be useful for somebody. ) |
Expected Behavior
Expected electron to open on command 'electron .'
Actual behavior
error 'electron' is not recognized as an internal or external command
A clear and concise description of what actually happened.
To Reproduce
Your best chance of getting this bug looked at quickly is to provide a REPOSITORY that can be cloned and run.
You can fork electron-quick-start and include a link to the branch with your changes.
If you provide a URL, please list the commands required to clone/setup/run your repo e.g.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional Information
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: