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.

3 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <div class="install-only-stable" markdown="1">
  2. #### Homebrew
  3. You can install Yarn through the [Homebrew package manager](http://brew.sh/).
  4. This will also install Node.js if it is not already installed.
  5. ```sh
  6. brew install yarn
  7. ```
  8. If you use [nvm](https://github.com/creationix/nvm) or similar, you should ensure that your `PATH` lists nvm's shims before the version of Node.js installed by Homebrew.
  9. #### MacPorts
  10. You can install Yarn through [MacPorts](https://www.macports.org/).
  11. This will also install Node.js if it is not already installed.
  12. ```sh
  13. sudo port install yarn
  14. ```
  15. {% include_relative _installations/tarball.md %}
  16. </div>
  17. <div class="install-only-rc install-only-nightly" markdown="1">
  18. Currently, there are no Homebrew or MacPorts packages available for RC or nightly builds of Yarn. Please use the tarball:
  19. {% include_relative _installations/tarball.md %}
  20. </div>
  21. #### Path Setup
  22. <!-- prettier-ignore -->
  23. {% include_relative _installations/unix_path_setup.md %}
  24. #### Upgrade Yarn
  25. Yarn will warn you if a new version is available.
  26. To upgrade Yarn, you can do so with Homebrew.
  27. ```sh
  28. brew upgrade yarn
  29. ```

js yarn包管理组件依赖分析

Contributors (1)