win10中安裝scoop
win10中安裝scoop
安裝scoop中出現各種問題,鼓搗了一晚上才搞好。現記錄安裝過程以及出現的問題。
1.安裝過程
1.1我是在國際網絡的前提下進行的
1.2以管理員身份運行PowerShell

1.2 查看PowerShell版本
$PSVersionTable.PSVersion

-
PowerShell: 確保已安裝PowerShell 5.0或更高版本。Windows 10以及更高的版本默認安裝的PowerShell 5.0。
1.3 我不想直接安裝在C盤所以選擇安裝在了D盤
需要新建一個文件夾scoop
$env:SCOOP='D:\scoop'
[Environment]::SetEnvironmentVariable('USERSCOOP', $env:SCOOP, 'User')
設置全局安裝路徑(需要管理員權限)
$env:SCOOP_GLOBAL='D:\scoop'
[Environment]::SetEnvironmentVariable('SCOOP_GLOBAL', $env:SCOOP_GLOBAL, 'Machine')
設置允許 PowerShell 執行本地腳本
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
安裝 Scoop
iwr -useb get.scoop.sh -outfile 'install.ps1'
.\install.ps1 -RunAsAdmin


浙公網安備 33010602011771號