yarn use specific package version code example
Example 1: yarn add specific version
// for specific versions
yarn add package-name@1.2.3
Example 2: yarn install specific version
yarn set version <version>
// for specific versions
yarn add package-name@1.2.3
yarn set version <version>