美文网首页
install yarn on Ubuntu16.04LTS

install yarn on Ubuntu16.04LTS

作者: ShanksWang | 来源:发表于2018-10-12 17:48 被阅读56次
# configure the repository
$ 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

# On Ubuntu 16.04 or below and Debian Stable, 
# you will also need to configure to get a new enough version of Node.js.
# install Node.js 10
$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
$ sudo apt-get install -y nodejs

# To compile and install native addons from npm 
# you may also need to install build tools
$ sudo apt-get install -y build-essential

# install it
$ sudo apt-get update && sudo apt-get install yarn
# check version
yarn --version

reference:
1. Debian / Ubuntu
2. Debian and Ubuntu based Linux distributions

相关文章

网友评论

      本文标题:install yarn on Ubuntu16.04LTS

      本文链接:https://www.haomeiwen.com/subject/mybgaftx.html