Aller au contenu principal

Yarn

yarn init
yarn add [package]
yarn add [package]@[version]
yarn add [package]@[tag]

devDependencies

yarn add [package] --dev

peerDependencies yarn add [package] --peer


optionalDependencies
``` code
yarn add [package] --optional
yarn upgrade [package]
yarn upgrade [package]@[version]
yarn upgrade [package]@[tag]
yarn remove [package]
yarn install
yarn upgrade-interactive [--latest]
Yarn outdated
yarn audit [--verbose] [--json] [--level]
yarn audit [--level info|low|moderate|high|critical]