DEV Community

Cover image for Web Development with Windows Subsystem for Linux

Web Development with Windows Subsystem for Linux

Ryan Lanciaux on September 30, 2019

(This was originally posted on ryanlanciaux.com on September 16, 2019. Photo by Daniel von Appen on Unsplash) My beloved MacBook Pro is currently ...
Collapse
 
amorpheuz profile image
Yash Dave

I am currently on WSL, haven't tried going to the insiders build for WSL2 yet due to some college work that I can't risk using. Have you tried out running any testing frameworks like Capybara? Currently figuring out how to run it on mine with little to no success in making chrome behave with WSL XD

Collapse
 
jakehl profile image
Jake Langford

I know this is a different test framework but I was able to get Chrome (and Chromium, which works better) working in the WSL for Cypress tests using info from this issue on GH

Maybe it'll be of help to you.

I use X410 as my display server, but Xming works just as well.

Collapse
 
amorpheuz profile image
Yash Dave

Sounds interesting, I think that might be what I have to try out too since even though I pass --disable-gpu to chrome headless, it tries to use GPU hardware acceleration and ends up crashing.

Collapse
 
ryanlanciaux profile image
Ryan Lanciaux

I have not tried this. Sounds like it could be challenging.

Collapse
 
rubiin profile image
Rubin • Edited

About yarn. Why don't u install it via npm instead of the Ubuntu package

Collapse
 
ryanlanciaux profile image
Ryan Lanciaux

I have installed yarn via npm a couple machines back BUT it sounds like they recommend against that:

From the yarn docs:

Note: Installation of Yarn via npm is generally not recommended. When installing Yarn with Node-based package managers, the package is not signed, and the only integrity check performed is a basic SHA1 hash, which is a security risk when installing system-wide apps.

For these reasons, it is highly recommended that you install Yarn through the installation method best suited to your operating system.

Generally on my Mac, I install via Homebrew now and Linux as described here 🚀

Collapse
 
khuongduybui profile image
Duy K. Bui

On build 18990, you can now skip the IP and point your Internet Explorer (I hope you're using Edge C instead) at localhost:8080

Collapse
 
eskimm profile image
Alan Redzepagic

Would not be easier for MS just to create its own Linux distro?