我尝试在 debian/ubuntu 上安装 PNPM 包管理器,但是当我输入命令时:
curl -fsSL https://get.pnpm.io/install.sh | sh-
出现以下错误:
bash: sh-: command not found
(23) Failed writing body
有人知道如何解决这个问题吗?
我不相信 -fsSL 是一个有效的选项。
也许您想使用以下选项之一。
卷曲选项链接
--ssl Try SSL/TLS
--ssl-allow-beast Allow security flaw to improve interop
--ssl-no-revoke Disable cert revocation checks (Schannel)
--ssl-reqd Require SSL/TLS
-f, --fail Fail silently (no output at all) on HTTP errors
--fail-early Fail on first transfer error, do not continue
--false-start Enable TLS False Start
-F, --form <name=content> Specify multipart MIME data
--form-string <name=string> Specify multipart MIME data
--ftp-account <data> Account data string
--ftp-alternative-to-user <command> String to replace USER [name]
--ftp-create-dirs Create the remote dirs if not present
--ftp-method <method> Control CWD usage
--ftp-pasv Use PASV/EPSV instead of PORT
-P, --ftp-port <address> Use PORT instead of PASV
--ftp-pret Send PRET before PASV
--ftp-skip-pasv-ip Skip the IP address for PASV
--ftp-ssl-ccc Send CCC after authenticating
--ftp-ssl-ccc-mode <active/passive> Set CCC mode
--ftp-ssl-control Require SSL/TLS for FTP login, clear for transfer
我不知道
| sh
我建议你去https://curlconverter.com问题是您的命令中
sh
和 -
之间缺少空格。
它应该看起来像这样:
curl -fsSL https://get.pnpm.io/install.sh | sh -
尝试使用
| bash -
代替 | sh -
。
curl 默认写入 stdout,因此
|
pipe 字符会转移输出,在本例中为 sh
终端。尝试使用 | bash -
它将其实时输出传输到 bash 终端。末尾的 -
字符意味着终端将接受发送到其标准输入的任何内容。您可能没有安装 sh
终端。