4. Installing dependencies
4. Installing dependencies
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.
Installing Dependencies
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:
- You have just checked out code for a project that needs these