Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 7, 2022 10:52 am GMT

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. Youll 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/


Original Link: https://dev.to/ndrohith/build-a-react-application-using-yarn-package-manager-423e

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To