You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

remove.md 898 B

3 years ago
12345678910111213141516171819202122
  1. ---
  2. id: docs_cli_remove
  3. guide: docs_cli
  4. layout: guide
  5. ---
  6. ##### `yarn remove <package...>` <a class="toc" id="toc-yarn-remove" href="#toc-yarn-remove"></a>
  7. Running `yarn remove foo` will remove the package named `foo` from your direct
  8. dependencies updating your `package.json` and `yarn.lock` files in the process.
  9. Other developers working on the project can run `yarn install` to sync their
  10. own `node_modules` directories with the updated set of dependencies.
  11. When you remove a package, it is removed from all types of dependencies:
  12. `dependencies`, `devDependencies`, etc.
  13. > **Note**: `yarn remove` will always update your `package.json` and
  14. > `yarn.lock`. This ensures that different developers on the same project get
  15. > the same set of dependencies. It is not possible to disable this behavior.
  16. > **Note**: `yarn remove <package> --<flag>` uses the same `flag`s as `yarn install` command.

js yarn包管理组件依赖分析

Contributors (1)