1.安装chocolatey
搜索cmd,用管理员权限打开
https://chocolatey.org/install
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
等待几秒
显示安装完成
在cmd中输入choco
or choco -?
验证是否安装成功
2.安装BAZEL
https://docs.bazel.build/versions/master/install-windows.html#install-on-windows-chocolatey
choco install bazel
3.使用前配置
https://docs.bazel.build/versions/master/windows.html
尤其是环境变量
java 版本查看:
java -version