Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过Bash shell WSL1安装纱线_Bash_Ubuntu_Installation_Yarnpkg_Windows Subsystem For Linux - Fatal编程技术网

通过Bash shell WSL1安装纱线

通过Bash shell WSL1安装纱线,bash,ubuntu,installation,yarnpkg,windows-subsystem-for-linux,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 我无法安装纱线 我试着杀死: ~$ kill -9 gpg-agent 和重新启动: ~$ gpg-agent --daemon 但到目前为止,一切都不起作用。有什么建议吗?我是从

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


但到目前为止,一切都不起作用。有什么建议吗?

我是从根做起的-

npm install -g yarn
检查纱线是否已安装-

yarn --version

它起作用了。

以下几点对我起作用了:

sudo apt remove gnupg
sudo apt autoremove
sudo apt install gnupg1
这将安装GNUPG Classic。阅读更多