fix: winget 安装 fnm 时指定 --source winget 避免 msstore 证书错误
This commit is contained in:
@@ -101,7 +101,7 @@ function Install-Fnm {
|
|||||||
try {
|
try {
|
||||||
if (Test-Command "winget") {
|
if (Test-Command "winget") {
|
||||||
Write-Info "使用 winget 安装 fnm..."
|
Write-Info "使用 winget 安装 fnm..."
|
||||||
& winget install Schniz.fnm -e --accept-source-agreements --accept-package-agreements | Out-Host
|
& winget install Schniz.fnm -e --source winget --accept-source-agreements --accept-package-agreements | Out-Host
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Write-Info "使用 PowerShell 脚本安装 fnm..."
|
Write-Info "使用 PowerShell 脚本安装 fnm..."
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ function Install-Fnm {
|
|||||||
try {
|
try {
|
||||||
if (Test-Command "winget") {
|
if (Test-Command "winget") {
|
||||||
Write-Info "使用 winget 安装 fnm..."
|
Write-Info "使用 winget 安装 fnm..."
|
||||||
& winget install Schniz.fnm -e --accept-source-agreements --accept-package-agreements | Out-Host
|
& winget install Schniz.fnm -e --source winget --accept-source-agreements --accept-package-agreements | Out-Host
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Write-Info "使用 PowerShell 脚本安装 fnm..."
|
Write-Info "使用 PowerShell 脚本安装 fnm..."
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ function Install-Fnm {
|
|||||||
try {
|
try {
|
||||||
if (Test-Command "winget") {
|
if (Test-Command "winget") {
|
||||||
Write-Info "使用 winget 安装 fnm..."
|
Write-Info "使用 winget 安装 fnm..."
|
||||||
& winget install Schniz.fnm -e --accept-source-agreements --accept-package-agreements | Out-Host
|
& winget install Schniz.fnm -e --source winget --accept-source-agreements --accept-package-agreements | Out-Host
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Write-Info "使用 PowerShell 脚本安装 fnm..."
|
Write-Info "使用 PowerShell 脚本安装 fnm..."
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ function Install-Fnm {
|
|||||||
try {
|
try {
|
||||||
if (Test-Command "winget") {
|
if (Test-Command "winget") {
|
||||||
Write-Info "使用 winget 安装 fnm..."
|
Write-Info "使用 winget 安装 fnm..."
|
||||||
& winget install Schniz.fnm -e --accept-source-agreements --accept-package-agreements | Out-Host
|
& winget install Schniz.fnm -e --source winget --accept-source-agreements --accept-package-agreements | Out-Host
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Write-Info "使用 PowerShell 脚本安装 fnm..."
|
Write-Info "使用 PowerShell 脚本安装 fnm..."
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ function Install-Fnm {
|
|||||||
# 使用 winget 安装 fnm
|
# 使用 winget 安装 fnm
|
||||||
if (Test-Command "winget") {
|
if (Test-Command "winget") {
|
||||||
Write-Info "使用 winget 安装 fnm..."
|
Write-Info "使用 winget 安装 fnm..."
|
||||||
& winget install Schniz.fnm -e --accept-source-agreements --accept-package-agreements | Out-Host
|
& winget install Schniz.fnm -e --source winget --accept-source-agreements --accept-package-agreements | Out-Host
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
# 备选:使用 cargo 或手动下载
|
# 备选:使用 cargo 或手动下载
|
||||||
|
|||||||
Reference in New Issue
Block a user