📅  最后修改于: 2023-12-03 15:06:05.881000             🧑  作者: Mango
'Yarn add' is a command used in yarn package manager to add packages to your project. It is equivalent to 'npm install' in npm package manager. With 'yarn add', you can easily install all packages listed in the package.json file of your project.
To use 'yarn add', navigate to the root directory of your project and run the following command in the terminal:
yarn add
This will install all packages listed in the package.json file of your project.
If you want to add a new package to your project, you can run the following command:
yarn add <package_name>
Replace '<package_name>' with the name of the package you wish to install.
Below is a markdown code block that you can use to show the usage of 'yarn add':
```bash
# Install all packages
yarn add
# Install a specific package
yarn add <package_name>