用 npm 安裝紗線

npm install --global yarn

如果你之前沒有安裝過 npm,請檢視網站文件以獲取更多詳細資訊。 https://yarnpkg.com/en/docs/install