bash - 通过 Bash shell WSL1 安装 Yarn

标签 bash ubuntu installation yarnpkg windows-subsystem-for-linux

当我运行 curl 时,它显示此错误:

~$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
gpg: can't connect to the agent: IPC connect call failed

我无法安装 yarn 。

我试着杀了:
~$ kill -9 gpg-agent 

并重新启动:
~$ gpg-agent --daemon       


但到目前为止没有任何效果。有什么建议吗?

最佳答案

我从根本上做到了这一点-

npm install -g yarn

检查 yarn 是否安装 -
yarn --version

有效。

关于bash - 通过 Bash shell WSL1 安装 Yarn,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61509216/

相关文章:

Linux -/proc/PID 何时创建?

bash - Grep 到多个输出文件

linux - Cuda 编译器不适用于 GCC 4.5 +

ubuntu - 如何在 ubuntu 中增加 jmeter 的堆大小?

plugins - Joomla 1.5 安装多个插件

macos - NPM 安装失败

linux - 如何即时显示exec-maven-plugin的输出

Linux备份脚本 "file changed as we read it"

node.js - 我正在尝试在 Ubuntu 16.04 中安装 nginx,但出现有关语言环境设置的错误

java - 通过 FileZilla 在 Linux 服务器上安装 Play Framework