Yarn Package Manager Cheat Sheet: by Via
Yarn Package Manager Cheat Sheet: by Via
Yarn Package Manager Cheat Sheet: by Via
Links
Documentation https://yarnpkg.com/en/docs
Install Packages
Install a package, update the package.json and yarn.lock files yarn add <package-name>
Install a specific version of a package, update the package.json and yarn.lock files yarn add <package-name>@<version-number>
Uninstall Packages
Uninstall, remove from package.json, remove from yarn.lock yarn remove <package-name>
List Packages
List packages used by your application with no dependencies yarn list --depth 0
Verify Packages
Upgrading Packages