Yarn draft

Last modified 13 days ago / Edit on Github
Danger icon
This is a draft, the content is not complete and of poor quality!

yarn creates yarn.lock (whereas npm creates package-lock.json). They both use package.json with the same structure (but with different algorithms).

# Install all packages in package.json
yarn install # or just yarn

# Forcing a re-download of all packages
yarn install --force

# Install only prod dependencies
yarn install --production

# Add a single package
yarn add <package>
yarn add -D <package> # in devDependencies
# Remove a package
yarn remove <package>

💬 Comments

Support Thi Support Thi