Install Specific Package Version with yarn
You can install a specific version of a package with yarn add
. To add enzyme
at version 1.2.3 you can:
$ yarn add enzyme@1.2.3
You can also specify a git repository (including branch):
$ yarn add enzyme@enzymejs/enzyme#branch-name
Tweet