If you have just checked out a package from version control, you will need to install those dependencies.
If you are adding dependencies for your project, then those dependencies are automatically installed during that process.
yarn install
is used to install all dependencies for a project. The dependencies are retrieved from your project’s package.json
file, and stored in the yarn.lock
file.
When developing a package, installing dependencies is most commonly done after:
There are many options for installing dependencies, including:
yarn
or yarn install
yarn install --flat
yarn install --force
yarn install --production
See the full list of flags you can pass to yarn install
.
← Previous: Managing dependencies Next: Working with version control →