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

Cannot build with Ubuntu on WSL 2 #142

Closed
luisdelarosa opened this issue Apr 5, 2020 · 3 comments
Closed

Cannot build with Ubuntu on WSL 2 #142

luisdelarosa opened this issue Apr 5, 2020 · 3 comments
Labels
Won't Fix Not an issue / won't fix

Comments

@luisdelarosa
Copy link

Describe the bug
When I try to build using "yarn", I get the following info:

[3/5] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.

Then when I execute "yarn dev", I get the following error:

/home/louie/projects/winmoji/node_modules/electron/dist/electron: error while loading shared libraries: libXcursor.so.1: cannot open shared object file: No such file or directory
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

To Reproduce
Steps to reproduce the behavior:

yarn
yarn dev

Expected behavior
winmoji should build

Desktop (please complete the following information):
Microsoft Windows [Version 10.0.19592.1001]
Ubuntu 18.04.4 LTS on WSL 2
nvm
node v13.12.0

@ryanSN
Copy link
Owner

ryanSN commented Apr 10, 2020

Would you be willing to try this suggestion? electron-userland/electron-prebuilt#260

I personally use https://cmder.net/ on windows or the git-SCM
As you will need windows to build and deploy to windows (WSL won't work here).

@luisdelarosa
Copy link
Author

Thanks! I'll try out both the electron workaround and also Cmder. I'm using to developing on OS X and Linux, so was trying to see if I could have a similar environment on Windows 10 with WSL. But I forgot that Electron natively targets Windows. :) Do I need anything else set up too like Visual Studio or anything specific? I'll also try installing yarn via Chocolatey.

@ryanSN
Copy link
Owner

ryanSN commented Apr 13, 2020

Ah, yeah I develop on both.
So for windows check out Cmder, which uses git-scm to give you the linux commands etc..
I use https://github.com/coreybutler/nvm-windows for nvm like exp.
I have yarn installed through Chocolatey.

That should be enough to get going.

I've had nothing but trouble with WSL on Windows so I've given up until its a little more mature.

Side note, this project also works on OS X 🤫 , I just only built it for Windows as thats what I was targeting at the time I made this.

@ryanSN ryanSN added the wontfix label Apr 23, 2020
@ryanSN ryanSN closed this as completed Apr 23, 2020
@ryanSN ryanSN added Won't Fix Not an issue / won't fix and removed wontfix labels Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Won't Fix Not an issue / won't fix
Projects
None yet
Development

No branches or pull requests

2 participants