Install WSL using the Microsoft store.
You can find the install link here Microsoft Store (Ubuntu)
You can follow the installation steps here: WSL Install Windows 10
Alternatively you can follow the steps below to setup a secondary WSL installation
wsl --import <DistributionName> <InstallLocation> <FileName>.wsl.rootfs.tar.gz
wsl -d ubuntu2010
The following commands will create a new user and set the default shell to bash. Next you'll set a password for this user account and assign that user the ability to run sudo commands for elevated permissions
useradd -s /bin/bash -m usernamepasswd usernameusermod -aG sudo username
Exit WSL instance, terminate and re-login using the non root account
wsl -t ubuntu2010wsl -d ubuntu2010 —user username
Install build essentials. C++ make and build tools. Required for node-gyp building of node.js binaries. Specifically sharp
sudo apt install build-essential
DappStarter utilizes a node.js runtime and will need to be pre-installed.
NVM → NODE → YARN
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
It's often necessary to reset the shell to access new environment variables.
nvm install 14
npm install -g yarn
wsl --unregister ubuntu2010