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

Unable to start #1

Open
ivancuric opened this issue Jun 16, 2021 · 3 comments
Open

Unable to start #1

ivancuric opened this issue Jun 16, 2021 · 3 comments

Comments

@ivancuric
Copy link

Using npm v7.9.0, since there was a package-lock.json present, starting the project results in

> electron-forge-sharp@1.0.0 start
> electron-forge start

'electron-forge' is not recognized as an internal or external command,
operable program or batch file.

Using yarn v1.22.5 the app also crashes with the following log:

An unhandled rejection has occurred inside Forge:
[Error: EISDIR: illegal operation on a directory, read] {
  errno: -4068,
  code: 'EISDIR',
  syscall: 'read'
}

Electron Forge was terminated. Location:
{}
error Command failed with exit code 1.
@aperkaz
Copy link
Owner

aperkaz commented Jun 16, 2021

Hi @ivancuric,

Just build it fresh in another machine, and it worked fine. I am running node 14.17.0, with npm 6.14.13, in MacOS.

Make sure to run npm i before firing npm run start, so the required dependencies are in place.

Let me know how it goes!

@ivancuric
Copy link
Author

ivancuric commented Jun 16, 2021 via email

@aperkaz
Copy link
Owner

aperkaz commented Jun 16, 2021

Yep, I had some issues when running it on windows.

I build another starter, in this case using electron-build, that fixes that issue: https://github.com/aperkaz/yarn-workspaces-electron

Still WIP, but it was the only way I was able to get sharp working in electron cross-env...

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

No branches or pull requests

2 participants