安装 yarn包管理器

Linux 安装
sudo apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3
echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

 

NPM 安装
sudo apt install nodejs
sudo apt install npm

npm install -g yarn
执行 yarn --version 若出现 /usr/bin/env: “node”: 没有那个文件或目录
sudo ln -s /usr/bin/nodejs /usr/bin/node

0

发表评论

This site uses Akismet to reduce spam. Learn how your comment data is processed.