An Interest In:
Web News this Week
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
April 7, 2022 10:52 am GMT
Original Link: https://dev.to/ndrohith/build-a-react-application-using-yarn-package-manager-423e
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:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To