通过 Scoop 安装
总分为四步:
1.以管理员运行powershell
2.执行 Set-ExecutionPolicy RemoteSigned -scope CurrentUser
3.指定目录安装
$env:SCOOP='E:\soft\scoop'
[environment]::setEnvironmentVariable('SCOOP',$env:SCOOP,'User')
iex(new-object net.webclient).downloadstring('https://get.scoop.sh')
4.将全局应用安装到自定义目录
$env:SCOOP_GLOBAL='E:\soft\scoop\apps'
[environment]::setEnvironmentVariable('SCOOP_GLOBAL',$env:SCOOP_GLOBAL,'Machine')
scoop install -g <app>
应用
scoop install yarn
scoop install nodejs
scoop install git
网友评论