ubuntu 安装 yarn william2025-01-11 约 100 字 预计阅读 1 分钟 注意 本文最后更新于 2025-01-11,文中内容可能已过时。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 ## install nodejs curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - apt-get install nodejs -y ## add repo for yarn 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 ## install yarn apt-get update apt-get install yarn ## now we have it yarn --version 赞赏 支付宝 微信 Please enable JavaScript to view the comments powered by giscus.