yarn update nodejs code example
Example 1: yarn update all dependencies to latest
yarn upgrade --latest
Example 2: yarn update all packages
yarn upgrade --latest
yarn upgrade left-pad --latest
yarn upgrade left-pad grunt --latest --tilde
Example 3: upgrade node via yarn
$ npm i -g yarn
$ yarn global add yarn
$ npm rm -g yarn