Skip to content
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-forge' is not recognized as an internal or external command (Windows 10) #1445

Closed
3 tasks done
gnesher opened this issue Jan 28, 2020 · 7 comments
Closed
3 tasks done
Labels
invalid Not related to Forge directly

Comments

@gnesher
Copy link

gnesher commented Jan 28, 2020

Preflight Checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Issue Details

  • Electron Forge Version:
    6.0.0-beta.47
  • Electron Version:
    v7.1.10
  • Operating System:
    Windows 10 Pro, 1909
  • Last Known Working Electron Forge version::
    N/A

Expected Behavior

Followed installation guide using npx, and tried to run 'npm start' expected the application to start, instead, I'm getting the following error: 'electron-forge' is not recognized as an internal or external command,

Actual Behavior

The application fails to start, throwing an error - 'electron-forge' is not recognized as an internal or external command,

To Reproduce

Follow npx install procedure on a windows machine

Additional Information

There's a closed ticket from 2018 regarding a similar error that happened when directory included spaces. I believe it was solved, regardless my folder does not contain spaces (test-ble-electron)

@gnesher gnesher added the bug label Jan 28, 2020
@malept
Copy link
Member

malept commented Jan 28, 2020

Can you reproduce this on a different machine?

What version of npx are you running?

@gnesher
Copy link
Author

gnesher commented Jan 29, 2020

$ npx -v
6.13.4

I'll try reproducing it on another machine later today, I don't have another development setup here

@malept
Copy link
Member

malept commented Feb 7, 2020

I can't reproduce this on a clean Windows 10 installation where I just installed the latest version of Node.js 12 and git.

@malept malept closed this as completed Feb 7, 2020
@malept malept added invalid Not related to Forge directly and removed bug labels Feb 10, 2020
@malept
Copy link
Member

malept commented Feb 10, 2020

I stand corrected - I can reproduce this, but only under weird circumstances. I ran npx create-electron-app test under WSL and then tried running npm start in Powershell/CMD. This will not work because WSL is Linux and not Windows. The solution is to delete the node_modules folder and re-run npm install.

@gnesher
Copy link
Author

gnesher commented Feb 11, 2020

@malept That makes sense, however, I'm using Git Bash :/

@malept
Copy link
Member

malept commented Feb 11, 2020

I can't reproduce this with just using Git Bash, either.

@Tapestes
Copy link

Tapestes commented Oct 2, 2020

Had the same problem. Best as I can tell it was a Path issue. Uninstalling node and reinstalling fixed it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Not related to Forge directly
Projects
None yet
Development

No branches or pull requests

3 participants