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.

outdated.md 1.4 kB

3 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ---
  2. id: docs_cli_outdated
  3. guide: docs_cli
  4. layout: guide
  5. ---
  6. <p class="lead">Checks for outdated package dependencies.</p>
  7. ##### `yarn outdated` <a class="toc" id="toc-yarn-outdated" href="#toc-yarn-outdated"></a>
  8. Lists version information for all package dependencies. This information
  9. includes the currently installed version, the desired version based on semver,
  10. and the latest available version.
  11. For example, say your `package.json` has the following dependencies listed:
  12. ```js
  13. {
  14. "dependencies": {
  15. "underscore": "~1.6.0"
  16. },
  17. "devDependencies": {
  18. "lodash": "4.15.0"
  19. }
  20. }
  21. ```
  22. The command run should look something like this:
  23. ```sh
  24. yarn outdated
  25. ```
  26. ```
  27. Package Current Wanted Latest Package Type URL
  28. lodash 4.15.0 4.15.0 4.16.4 devDependencies https://github.com/lodash/lodash#readme
  29. underscore 1.6.0 1.6.0 1.8.3 dependencies https://github.com/jashkenas/underscore#readme
  30. ✨ Done in 0.72s.
  31. ```
  32. ##### `yarn outdated [package...]` <a class="toc" id="toc-yarn-outdated-package" href="#toc-yarn-outdated-package"></a>
  33. Lists version information for one or more package dependencies.
  34. For the example `package.json` shown previously, you should see the following
  35. output when checking one of the dependencies:
  36. ```sh
  37. yarn outdated lodash
  38. ```
  39. ```
  40. Package Current Wanted Latest Package Type URL
  41. lodash 4.15.0 4.15.0 4.16.4 devDependencies https://github.com/lodash/lodash#readme
  42. ✨ Done in 1.04s.
  43. ```

js yarn包管理组件依赖分析

Contributors (1)