WSL2
with Visual Studio CodeRemote development Extension pack on VS Code
docker-compose
WSL
WSL2
following the docsdocker-compose
in WSL
WSL2
based engine in the settings on docker desktop.Resources
on docker desktop.npm
Based on Fiqri Ismail's Medium article:
Use the nodesource
distribution installer:
Find other versions in @nodesource/distributions/deb/
Use apt-get
to install nodejs
:
Verify that node
is working:
PATH
If you find your pwd
starts with /mnt/c/β¦
and you should cd ~/
which will take you to your home folder inside WSL
which you want to be using instead when hacking on code.
You are likely hitting a problem with importing your Windows PATH
environment variable into WSL2
.
See https://github.com/microsoft/WSL/issues/1890.
Important Notice: Refer to @microsoft/WSL #1890 before making the following changes.
Open ~/.bashrc
in your editor:
Append the following line in the end:
If you still run into the problem with some commands you might wan to consider this approach:
See this comment.