Scoop的安装(软件包管理工具)

环境要求:
PowerShell 5.0或更高版本

查看powershell版本

$ psversiontable .psversion.major

确保已允许PowerShell执行本地脚本,先设置 PowerShell 允许执行未签名脚本

set-executionpolicy remotesigned -scope currentuser

Unrestricted 也可以, 但是安全性比较低. 所以,如果你不是很确定就一直使用RemoteSigned
下载 Scoop 安装脚本进行安装

Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')

或者使用

iex (new-object net.webclient).downloadstring('https://get.scoop.sh')

如果下载scoop的过程中断,那么必须先删除(C:\Users\scoop)文件夹,再执行以上命令安装。

最后附上操作图:

安装步骤

安装yarn

scoop install yarn

你可能感兴趣的:(Scoop的安装(软件包管理工具))