Before completing the installation, I recommend you use PowerShell going forward. The examples in this book will be using PowerShell inside cmder. Once the clone process is complete, run each of the commands given in the following code snippet. If you see a message recommending that you run git pull instead of ./emsdk update, use the git pull command prior to running the ./emsdk install latest command:
# Change directory into the EMSDK installation folder
cd emsdk
# Fetch the latest registry of available tools
.\emsdk update
# Download and install the latest SDK tools
.\emsdk install latest
# Make the latest SDK active for the current user (writes ~/.emscripten file)
.\emsdk activate --global latest
The --global flag in the .\emsdk activate command allows you to run emcc without having to run a script to set the environment variables each session. To ensure you can use the Emscripten compiler, restart your CLI and run this command:
emcc --version
If you see a message with version information, the setup was successful.