yarn install all dependencies code example
Example 1: add dev dependency yarn
yarn add -D package
//or
yarn add --dev package
Example 2: update all dependencies npm
npm update //update all local packages
Example 3: linux install yarn
curl -o- -L https://yarnpkg.com/install.sh | bash
Example 4: yarn add install all packages in package,json
yarn install
Example 5: install dev dependency yarn
yarn add nameOfPackage --dev