# 导入图片“Discourse Build Error”时出现问题，请帮忙

**URL:** <https://meta.discourse.org/t/problem-with-import-image-discourse-build-error-help-pls/196282>\
**Category:** Development\
**Created:** [2021年七月7日 08:09 UTC](https://meta.discourse.org/t/problem-with-import-image-discourse-build-error-help-pls/196282 "2021-07-07T08:09:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikhail\_Tyuftyaev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikhail_tyuftyaev/32/237998_2.png) [@Mikhail\_Tyuftyaev](https://meta.discourse.org/u/Mikhail_Tyuftyaev)\
**Post date:** [2021年七月7日 08:09 UTC](https://meta.discourse.org/t/problem-with-import-image-discourse-build-error-help-pls/196282/1 "2021-07-07T08:09:01Z")

</div>

大家好。  
我在 icons-sprite.svg 中添加了一个新图标。  
然后将其上传到我的主题。  
之后我遇到了一个错误：

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/1/d10d4445e2d8581eb2cc855a7a1a25d626382334.png)

我该如何恢复我的 Discourse？

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2021年七月7日 09:58 UTC](https://meta.discourse.org/t/problem-with-import-image-discourse-build-error-help-pls/196282/2 "2021-07-07T09:58:30Z")

</div>

我认为如果你打开开发面板，就能看到导致该问题的错误。

---

<div class="post-metadata">

**Author:** ![Mikhail\_Tyuftyaev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikhail_tyuftyaev/32/237998_2.png) [@Mikhail\_Tyuftyaev](https://meta.discourse.org/u/Mikhail_Tyuftyaev)\
**Post date:** [2021年七月7日 09:59 UTC](https://meta.discourse.org/t/problem-with-import-image-discourse-build-error-help-pls/196282/3 "2021-07-07T09:59:44Z")

</div>

请问如何打开它？

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2021年七月7日 10:09 UTC](https://meta.discourse.org/t/problem-with-import-image-discourse-build-error-help-pls/196282/4 "2021-07-07T10:09:09Z")

</div>

F12 在 Linux 上的 Chrome 浏览器中有效。

---

<div class="post-metadata">

**Author:** ![Mikhail\_Tyuftyaev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikhail_tyuftyaev/32/237998_2.png) [@Mikhail\_Tyuftyaev](https://meta.discourse.org/u/Mikhail_Tyuftyaev)\
**Post date:** [2021年七月7日 10:53 UTC](https://meta.discourse.org/t/problem-with-import-image-discourse-build-error-help-pls/196282/5 "2021-07-07T10:53:22Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/3X/d/9/d969341a9f5253b6a7aa8e3e215f1d7238f22662.png)

---

<div class="post-metadata">

**Author:** ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Post date:** [2021年十二月4日 09:06 UTC](https://meta.discourse.org/t/problem-with-import-image-discourse-build-error-help-pls/196282/6 "2021-12-04T09:06:08Z")

</div>

我在 **DEV** 的 MacOS 中遇到了这个问题，但过了一会儿它就自行解决了。但现在当我尝试切换到 `stable` 分支时，问题又出现了。我认为这与 ember-cli 有关。团队有什么建议吗？

附注：  
我是这样解决这个问题的。

1. 卸载了通过 homebrew 安装的 node 和 yarn。
2. 通过 `brew install node@16` 安装了 LTS 版本的 node。
3. 通过 `npm install -g yarn` 安装了 yarn。

这种方法的优点是，我可以选择要用于 yarn 的 node 版本。而使用 homebrew 时，它在安装 yarn 时会安装最新的 node 版本，没有灵活性。

---

<div class="post-metadata">

**Author:** ![frank.manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frank.manuel/32/203348_2.png) [@frank.manuel](https://meta.discourse.org/u/frank.manuel)\
**Post date:** [2022年四月30日 07:10 UTC](https://meta.discourse.org/t/problem-with-import-image-discourse-build-error-help-pls/196282/7 "2022-04-30T07:10:04Z")

</div>

我试过这个（除了我手动下载了 node@16 而不是使用 brew install），但问题仍然存在。

团队里还有其他人有解决方案吗？
