Windows 安装Bazel (安装过程中报远程服务器错,先记下来方法)

来源:互联网 发布:本地搜索引擎seo 编辑:程序博客网 时间:2024/05/22 01:41

安装bazel,先安装 Chocolatey。


以管理员权限启动cmd

粘贴如下代码,安装chocolatey.

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

安装Bazel

https://docs.bazel.build/versions/master/install-windows.html#install-on-windows-chocolatey

choco install bazel

 

使用前配置

https://docs.bazel.build/versions/master/windows.html

     尤其是环境变量   



java 版本查看:
java -version



原创粉丝点击