# 如何安装 lazy-yt 插件

**URL:** https://meta.discourse.org/t/how-to-install-the-lazy-yt-plugin/202850
**Category:** Support
**Created:** [2021年九月7日 15:34 UTC](https://meta.discourse.org/t/how-to-install-the-lazy-yt-plugin/202850 "2021-09-07T15:34:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![arbakker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arbakker/32/233360_2.png) [@arbakker](https://meta.discourse.org/u/arbakker)
#### Post date: [2021年九月7日 15:34 UTC](https://meta.discourse.org/t/how-to-install-the-lazy-yt-plugin/202850/1 "2021-09-07T15:34:03Z")

</div>

我可能漏掉了什么，但我在新的 Discourse 部署（v2.7.7）中无法安装 lazy-yt 插件。我查阅了文档和论坛，但未找到答案。

根据这个主题 [https://meta.discourse.org/t/install-plugins-in-discourse/19157，该插件应添加到](https://meta.discourse.org/t/install-plugins-in-discourse/19157%EF%BC%8C%E8%AF%A5%E6%8F%92%E4%BB%B6%E5%BA%94%E6%B7%BB%E5%8A%A0%E5%88%B0) `app.yaml` 文件中（我使用的是 discourse\_docker 镜像进行部署）。但看起来 lazy-yt 插件已包含在 Discourse 的默认安装中，参见 [https://github.com/discourse/discourse/tree/main/plugins/lazy-yt。此外，该插件的代码并非托管在独立的仓库中，因此我不确定如何在](https://github.com/discourse/discourse/tree/main/plugins/lazy-yt%E3%80%82%E6%AD%A4%E5%A4%96%EF%BC%8C%E8%AF%A5%E6%8F%92%E4%BB%B6%E7%9A%84%E4%BB%A3%E7%A0%81%E5%B9%B6%E9%9D%9E%E6%89%98%E7%AE%A1%E5%9C%A8%E7%8B%AC%E7%AB%8B%E7%9A%84%E4%BB%93%E5%BA%93%E4%B8%AD%EF%BC%8C%E5%9B%A0%E6%AD%A4%E6%88%91%E4%B8%8D%E7%A1%AE%E5%AE%9A%E5%A6%82%E4%BD%95%E5%9C%A8) `app.yaml` 文件中引用该插件。

在我的新 Discourse 部署中，我没有看到任何与 lazy-yt 插件相关的设置：

 ![afbeelding](https://global.discourse-cdn.com/meta/original/3X/2/c/2c896a1c3e229732195132ec89de70b55bc36c92.png)

任何帮助都将不胜感激！

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [2021年九月7日 16:23 UTC](https://meta.discourse.org/t/how-to-install-the-lazy-yt-plugin/202850/2 "2021-09-07T16:23:35Z")

</div>

嘿 @arbakker，

欢迎来到 Discourse 社区。

据我所知，lazy-yt 是 Discourse 内置的 6 个插件之一，作为核心组件的一部分，您无需单独安装。

这与 Polls 插件类似。您无需单独安装它，但它已经存在于编辑器中。

希望这能解释清楚。

---

<div class="post-metadata">

### Author: ![arbakker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arbakker/32/233360_2.png) [@arbakker](https://meta.discourse.org/u/arbakker)
#### Post date: [2021年九月8日 07:09 UTC](https://meta.discourse.org/t/how-to-install-the-lazy-yt-plugin/202850/3 "2021-09-08T07:09:49Z")

</div>

@IAmGav 谢谢你的欢迎！现在回想起来，这些插件作为核心代码库的一部分默认安装，这显然是显而易见的。

我正在升级一个旧的安装版本，该版本之前需要单独安装 lazy-yt。这就解释了我在这件事上的固执了 :)。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2021年十月8日 07:10 UTC](https://meta.discourse.org/t/how-to-install-the-lazy-yt-plugin/202850/4 "2021-10-08T07:10:00Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
