linux yarn add get newest version code example Example: update yarn # Windows choco upgrade yarn # MacOS brew upgrade yarn