Show Menu

yarn Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Yarn instal­lation and upgrade

install with npm
npm install yarn -g
uninstall with npm
npm uninstall yarn -g
update with npm
*npm update yarn -g
install with choco
choco install yarn
uninstall with choco
choco uninstall yarn
upgrade with choco
choco upgrade yarn
test yarn version
yarn or yarn --version
npm update yarn -g does not always work. To upgrade, do uninstall and install. If your yarn is installed with one approach, it should be updated with that approach. Yarn respects npm config, eg. proxy, https-­proxy.



yarn commands

yarn global add bower
Use '--ver­bose' at the end to show more logs. Depend­encies are cached in '%HOME­%\A­ppD­ata­\Lo­cal­\Ya­rn­\con­fig­\gl­oba­l\n­ode­_mo­dul­es\'. Add '%HOME­%\A­ppD­ata­\Lo­cal­\Ya­rn­\con­fig­\gl­oba­l\n­ode­_mo­dul­es\.bin' to your path.