How to install yarn
- Run
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bashto install nvm - Restart your terminal
- Run
nvm --versionand make sure it returns the version
- Run
nvm install --ltsto install node/npm
--ltsmeans latest version- Run
node --versionand make sure it returns the version - Run
npm --versionand make sure it returns the version
- Run
npm install -g yarnto install yarn
-gmeans global- Run
yarn --versionand make sure it returns the version
- All done! To install the dependencies for a project,
cdto the project directory and runyarn install