安装
scoop安装前提
- PowerShell版本要求:$psversiontable.psversion.major # should be >= 5.0
- PowerShell执行:set-executionpolicy remotesigned -scope currentuser
- 默认安装路径:C:\Users\xxx\scoop
- 可自定义安装路径
打开powershell,输入如下命令
1. 打开远程权限
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
2. 环境变量
$env:SCOOP='D:\Scoop'
[Environment]::SetEnvironmentVariable('SCOOP',$env:SCOOP,'User')
# 全局安装
# $env:SCOOP_GLOBAL='D:\Scoop'
# [environment]::setEnvironmentVariable('SCOOP_GLOBAL',$env:SCOOP_GLOBAL,'Machine')
3. 安装
iwr -useb get.scoop.sh | iex
# 默认安装路径:`C:\Users\xxx\scoop`
#控制台输出安装成功
Initializing...
Downloading ...
Creating shim...
Adding D:\Scoop\shims to your path.
Scoop was installed successfully!
Type 'scoop help' for instructions.
如安装不了,可试试以下的任一种方式
- irm