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.

install.html 2.4 kB

2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. ---
  2. layout: guide
  3. hero_subtext: version-with-upgrade-notice.html
  4. scripts:
  5. - "/js/build/install.js"
  6. operating_systems:
  7. - alpine
  8. - arch
  9. - centos
  10. - debian
  11. - gentoo
  12. - mac
  13. - solus
  14. - windows
  15. - alternatives
  16. ---
  17. {% include vars.html %}
  18. {{i18n.install_intro}}
  19. {% capture npm_info %}{% include_relative _installations/npm.md %}{% endcapture %}
  20. {{npm_info | markdownify}}
  21. <h2>{{i18n.install_alternatives}}</h2>
  22. <details>
  23. <summary>{{i18n.install_click_to_expand_collapse}}</summary>
  24. <br />
  25. <div class="install-select-os">
  26. <div class="form-group row">
  27. <label for="os" class="col-3 col-form-label">{{i18n.install_os}}:</label>
  28. <div class="col-6">
  29. <select id="os" class="form-control">
  30. {% for os in layout.operating_systems %}
  31. {% capture os_i18n %}install_os_{{os}}{% endcapture %}
  32. <option value="{{os}}">{{i18n[os_i18n]}}</option>
  33. {% endfor %}
  34. </select>
  35. </div>
  36. </div>
  37. <div class="form-group row">
  38. <label for="version" class="col-3 col-form-label">{{i18n.install_version}}:</label>
  39. <div class="col-6">
  40. <select id="version" class="form-control">
  41. <option value="stable">{{i18n.site_nav_stable_version}} ({{site.latest_version}})</option>
  42. <option value="rc">{{i18n.site_nav_rc_version}} ({{site.latest_rc_version}})</option>
  43. <option id="nightly-version" value="nightly">{{i18n.site_nav_nightly_version}}</option>
  44. </select>
  45. </div>
  46. </div>
  47. </div>
  48. <div id="install-instructions">
  49. <div class="install-os-instructions">Loading...</div>
  50. {% for os in layout.operating_systems %}
  51. <div id="{{os}}" class="install-os-instructions" style="display: none">
  52. {% capture os_i18n %}install_os_{{os}}{% endcapture %}
  53. <h3>{{i18n[os_i18n]}}</h3>
  54. {% capture exists %}{% file_exists _installations/{{os}}.md %}{% endcapture %}
  55. {% if exists == "true" %}
  56. {% capture info %}{% include_relative _installations/{{os}}.md %}{% endcapture %}
  57. {{info | markdownify}}
  58. {% endif %}
  59. </div>
  60. {% endfor %}
  61. </div>
  62. </details>
  63. <h2>{{i18n.install_check}}</h2>
  64. <p>
  65. {{i18n.install_check_details}}
  66. </p>
  67. {% highlight sh %}
  68. {% endhighlight %}
  69. <div class="language-sh highlighter-rouge">
  70. <pre class="rougeHighlight"><code>yarn --version</code></pre>
  71. </div>

js yarn包管理组件依赖分析

Contributors (1)