Search…
Windows Subsystem for Linux (WSL)
Many blockchains will not run on Windows due to platform specific applications. However you can utilize WSL in order to match the platform and still run natively on Windows

WSL Setup

Install WSL using the Microsoft store.
**Alternatively **you can follow the steps below to setup a secondary WSL installation

Download Image Linux Distribution Image

Import WSL Instance

1
wsl --import <DistributionName> <InstallLocation> <FileName>.wsl.rootfs.tar.gz
Copied!

Launch WSL Instance

1
wsl -d ubuntu2010
Copied!

Preparing Linux Installation

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
1
useradd -s /bin/bash -m username
2
passwd username
3
usermod -aG sudo username
Copied!
Exit WSL instance, terminate and re-login using the non root account
1
wsl -t ubuntu2010
2
wsl -d ubuntu2010 —user username
Copied!
Install build essentials. C++ make and build tools. Required for node-gyp building of node.js binaries. Specifically sharp
1
sudo apt install build-essential
Copied!

Installing Software

DappStarter utilizes a **node.js **runtime and will need to be pre-installed.
NVM → NODE → YARN

Install Node Version Manager (NVM)

1
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
Copied!
It's often necessary to reset the shell to access new environment variables.
1
source ~/.bashrc
Copied!

Install Node 14

1
nvm install 14
Copied!

Install Yarn

1
npm install -g yarn
Copied!
Node 16 has build errors issues with compiling sharp module from source

Remove WSL Instance

1
wsl --unregister ubuntu2010
Copied!
Last modified 8d ago