update yarn to specific version code example
Example 1: yarn add specific version
// for specific versions
yarn add package-name@1.2.3
Example 2: yarn update a specific package
yarn upgrade
yarn upgrade left-pad
yarn upgrade left-pad@^1.0.0
yarn upgrade left-pad grunt
yarn upgrade @angular