-
PowerShell指定scoop到D盘执行
$env:SCOOP='D:\Scoop'
、[environment]::setEnvironmentVariable('SCOOP',$env:SCOOP,'User')
-
安装
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
问题1:
原因:https://get.scoop.sh 无法访问,换一个地址访问iex (new-object net.webclient).downloadstring('https://raw.githubusercontent.com/lukesampson/scoop/master/bin/install.ps1')
问题2:
原因:需要修改PowerShell的安全策略Set-ExecutionPolicy RemoteSigned -scope CurrentUser
,设置完成之后重新执行命令iex (new-object net.webclient).downloadstring('https://raw.githubusercontent.com/lukesampson/scoop/master/bin/install.ps1')
-
检验是否安装成功:
scoop help
-
应用
安装allure:scoop install allure
Windows安装Scoop
于 2021-06-26 16:22:24 首次发布