1. Go to the official website to download rebar3
2. Download the file to a directory environment variable erl
3. General downloaded file .txt files, remember to delete the .txt extension
4. New rebar3.txt, in which the following entries
@echo off
setlocal
set rebarscript=%~f0
escript.exe "%rebarscript:.cmd=%" %*
5. rebar3.txt into rebar3.cmd
6. Open cmd, rebar3 --version to see if the installation was successful
Rebar 3.12.0 on Erlang / OTP Erts 22 5.10