安裝yarn的時候總是裝了個cmdtes的東西,官網是說刪掉cmdtest重裝就行,可是真沒用。bash
正確的解決辦法應該是像這位說的同樣,先修改一下源,sudo apt update再下載,就能下載到真正的yarn了。curl
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