-
Notifications
You must be signed in to change notification settings - Fork 245
Description
Describe the bug/缺陷描述
refer to windows Automated Installation session:
running $iwr https://raw.githubusercontent.com/voidint/g/master/install.ps1 -useb | iex some error occured, log below.
param : 无法将“param”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正 确,然后再试一次。 所在位置 行:8 字符: 1 + param([string] $base_dir = "$default_base_dir") + ~~~~~ + CategoryInfo : ObjectNotFound: (param:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException [1/3] Downloading https://github.com/voidint/g/releases/download/v1.5.2/g1.5.2.windows-amd64.zip 目录: C:\Users\Junon.g Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 2023/11/29 11:14 downloads d----- 2023/11/29 11:14 bin Invoke-WebRequest : 无法连接到远程服务器 所在位置 行:20 字符: 5 + Invoke-WebRequest -Uri "$url" -OutFile "$dest_file"
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest],WebExce
ption - FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
- CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest],WebExce
[2/3] Install g to the C:\Users\Junon.g\bin
Expand-Archive : 路径“\downloads\g1.5.2.windows-amd64.zip”不存在,或者不是有效的文件系统路径。
所在位置 行:24 字符: 5
-
Expand-Archive "$dest_file" "$base_dir\bin\" -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : InvalidArgument: (\downloads\g1.5.2.windows-amd64.zip:String) [Expand-Archive],InvalidOp
erationException - FullyQualifiedErrorId : ArchiveCmdletPathNotFound,Expand-Archive
- CategoryInfo : InvalidArgument: (\downloads\g1.5.2.windows-amd64.zip:String) [Expand-Archive],InvalidOp
[3/3] Set environment variables
%G_HOME%\bin appended
%GOROOT%\bin already exists
%GOPATH%\bin already exists
Done!
To Reproduce/缺陷复现步骤
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior/期望行为
A clear and concise description of what you expected to happen.
Screenshots/实际运行结果截图
If applicable, add screenshots to help explain your problem.
Environments (please complete the following information)/运行环境:
-
OS[e.g. uname -a]
windows 11 -
g -v
-
go env
-
echo $G_EXPERIMENTAL
-
echo $G_HOME
-
echo $G_MIRROR
Additional context/额外信息
Add any other context about the problem here.