DEV Community

Cover image for Build a React application using yarn package manager
Rohith ND
Rohith ND

Posted on

Build a React application using yarn package manager

Install via npm

You can use npm to install the yarn package.
npm install --global yarn

In Debian / Ubuntu

You can install Yarn from Debian package repository on Debian or Ubuntu Linux. You’ll need to set up the repository first:
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
Then simply type
sudo apt update && sudo apt install yarn

Examine installation

yarn --version

Create React application

yarn create react-app <application_name>
yarn create is available in Yarn 0.25+

Starting React application

cd <application_name>
yarn start

Credits: https://reactjs.org/ , https://classic.yarnpkg.com/en/docs/

Top comments (0)