首页 > 解决方案 > 通过 Bash shell WSL1 安装 Yarn

问题描述

当我运行 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

我无法安装纱线。

我试着杀了:

~$ kill -9 gpg-agent 

并重新启动:

~$ gpg-agent --daemon       

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

标签: bashubuntuinstallationyarnpkgwindows-subsystem-for-linux

解决方案


I did this from my root -

npm install -g yarn

Checked if the yarn is installed by -

yarn --version

It worked.


推荐阅读