yarn 安裝失敗 can't connect to the agent: IPC connect call failed

在 windows wsl ubuntu 中安裝 yarn,按照官網(wǎng)操作結(jié)果失敗了

官網(wǎng)教程:

yarn install for debian / ubuntu

報(bào)錯(cuò):

can't connect to the agent: IPC connect call failed

解決辦法:

sudo apt remove gpg

sudo apt install gnupg1

然后再執(zhí)行:

# 
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
# 
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
#
sudo apt update &&sudo apt install yarn

# 驗(yàn)證是否成功
yarn --version

最后,更新淘寶源:

yarn config get registry
# https://registry.yarnpkg.com

yarn config set registry https://registry.npm.taobao.org

yarn config get registry
# https://registry.npm.taobao.org

參考:Ubuntu20.04安裝yarn報(bào)錯(cuò)gpg: can't connect to the agent: IPC connect call failed(已解決)

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容