bash - 通过 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
但到目前为止没有任何效果。有什么建议吗?
解决方案
I did this from my root -
npm install -g yarn
Checked if the yarn is installed by -
yarn --version
It worked.
推荐阅读
- angular - Angular 嵌套拖放 / CDK 材质 cdkDropListGroup cdkDropList nested
- css - 我可以将 webpack 配置为在我的顶级 index.html 中组合和缓存 bust css 文件吗?
- python - Matplotlib:获取轴的轴偏移文本
- javascript - node html-pdf 打印出额外的空白页
- android - Android 模拟器设备对于屏幕来说太大了
- javascript - 加载页面时如何填写 select2 (4.0) 中的所有数据?
- reactjs - React useContext第一次没有设置值
- python-3.x - 带有“无法加载配置:无法加载配置”的文件 .log VSCode
- python - 是否可以将 psycopg2 用于准备好的语句?
- featherlight.js - 在对话框中单击元素时,Featherlight 打开多个实例