windows 安装Platform.sh cli

场景:需要使用远程托管代码,需要安装Platform.sh

无效方案(仅本人电脑环境):

  1. curl安装
    命令:curl -fsS https://platform.sh/cli/installer | php
    弃用原因:file_get_contents() 无法请求https类资源,无法安装
  2. bash 安装
    命令:curl -fsSL https://raw.githubusercontent.com/platformsh/cli/main/installer.sh | bash
    弃用原因: Your OS (MINGW64_NT-10.0-26100) is currently not supported,windows上通过git bash不支持
  3. npm 安装
    找不到包,弃用

最终使用Scoop 安装

  1. 安装Scoop
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
scoop bucket add platformsh https://github.com/platformsh/homebrew-tap.git
scoop install platform

注意:需要使用非管理员运行的PowerShell

  1. 安装platformsh
scoop bucket add platformsh https://github.com/platformsh/homebrew-tap.git
scoop install platform

注意:如果第一条命令执行无法访问,可以尝试关闭vpn,如果第二条命令特别慢,或超时可以尝试开启vpn呢

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值