所有的debian系通用
Add nodejs repo
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
Add yarn repo
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 node and yarn and development tools
sudo apt-get update
sudo apt-get install -y nodejs yarn build-essential
网友评论