npm i -g yarn
#if you are on linux use sudo before command like this
sudo npm i -g yarn
// here i nean install -g mean global insall if you want to install local remove -g
npm install 'pckg-name' -> yarn add 'pckg-name'
npm uninstall 'pckg-name' -> yarn remove 'pckg-name'
npm run 'your-script' -> yarn run 'your-script'
npm init -> yarn init
npm install -> yarn OR yarn install
## In yarn flags like: --save-dev --save are used the same way
brew install yarn
sudo apt install yarn
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
sudo rpm --import https://dl.yarnpkg.com/rpm/pubkey.gpg
CopyCopied!
yarn add <package_name>
npm i -g yarn
#if you are on linux use sudo before command like this
sudo npm i -g yarn
// here i nean install -g mean global insall if you want to install local remove -g
npm install 'pckg-name' -> yarn add 'pckg-name'
npm uninstall 'pckg-name' -> yarn remove 'pckg-name'
npm run 'your-script' -> yarn run 'your-script'
npm init -> yarn init
npm install -> yarn OR yarn install
## In yarn flags like: --save-dev --save are used the same way
brew install yarn
sudo apt install yarn
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
sudo rpm --import https://dl.yarnpkg.com/rpm/pubkey.gpg
CopyCopied!
yarn add <package_name>