yarn config error, No such file or directory: ‘config’

sudo apt update && sudo apt install yarn

阿強
2 min readJun 14, 2020

在編譯系統時執行以下指令出現No such file or directory: ‘config’問題:

$ yarn config set yarn-mirror /home/yarn-mirror

執行yarn時有這個執行檔,但似乎安裝錯誤,因此測試輸入yarn config時,會出現No such file or directory: ‘config’,yarn將後面接的config判斷為所需要的file,因此重新安裝yarn到Stable version,目前是v1.22.4。目前環境是Ubuntu,依照官方的提供的其中一種作法,apt install來安裝。

$ sudo apt update && sudo apt install yarn

更多安裝方法可參考上述連結

--

--

阿強
阿強

Written by 阿強

一個喜歡研究新事物的軟體工程師

No responses yet