在某位置建立文件夹如ems
cd到ems文件夹
#Get the emsdk repo
git clone
https://github.com/emscripten-core/emsdk.git
#Enter that directory
cd emsdk
# Fetch the latest version of the emsdk (not needed the first time you clone)
# emsdk文件夹里
git pull
emsdk install latest
emsdk activate latest
# z在emsdk文件夹里,**重要**
# i配置环境变量,每开一个新的命令窗口都需要执行一遍。
emsdk_env.bat
emcc -v