Skip to content
李小明 edited this page Apr 28, 2024 · 9 revisions

1. 安装

curl -sL https://deb.nodesource.com/setup_20.x | sudo bash -

sudo apt-get install -y nodejs gcc g++ make

curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null

echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

sudo apt-get update && sudo apt-get install yarn

2. 设置镜像

感谢提供镜像的所有组织!

sudo npm config set --location=global registry https://npmreg.mirrors.ustc.edu.cn
Clone this wiki locally