【发布时间】:2023-01-20 17:15:38
【问题描述】:
我正在尝试在 debian/ubuntu 上安装 PNPM 包管理器,但是当我输入命令时:
curl -fsSL https://get.pnpm.io/install.sh | sh-
显示以下错误:
bash: sh-: command not found
(23) Failed writing body
有谁知道如何解决这一问题?
【问题讨论】:
我正在尝试在 debian/ubuntu 上安装 PNPM 包管理器,但是当我输入命令时:
curl -fsSL https://get.pnpm.io/install.sh | sh-
显示以下错误:
bash: sh-: command not found
(23) Failed writing body
有谁知道如何解决这一问题?
【问题讨论】:
我不相信 -fsSL 是一个有效的选项。
也许您的意思是使用以下选项之一。
LINK to curl options
--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
将您的 curl 命令粘贴到“curl 命令”文本区域,如果有错误,他们会为您指出。
【讨论】:
问题是您的命令中 sh 和 - 之间缺少空格。
它应该是这样的:
curl -fsSL https://get.pnpm.io/install.sh | sh -
【讨论】: