模板初始化 --->不行 -- TypeError: this.breakLines(...).flat 不是一个函数

发布于 2025-01-19 11:36:48 字数 431 浏览 5 评论 0原文

在我的机器(Windows)中设置本地时,我在运行“stencil init”时遇到以下错误

C:\Users>stencil init
not ok -- TypeError: this.breakLines(...).flat is not a function
Please visit the troubleshooting page https://developer.bigcommerce.com/stencil-docs/deploying-a-theme/troubleshooting-theme-uploads.
If this error persists, please visit https://github.com/bigcommerce/stencil-cli/issues and submit an issue.

我尝试卸载并重新安装节点。

While setting up local in my machine(windows), I am getting following error on running "stencil init"

C:\Users>stencil init
not ok -- TypeError: this.breakLines(...).flat is not a function
Please visit the troubleshooting page https://developer.bigcommerce.com/stencil-docs/deploying-a-theme/troubleshooting-theme-uploads.
If this error persists, please visit https://github.com/bigcommerce/stencil-cli/issues and submit an issue.

I have tried uninstalling and reinstalling node.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

热情消退 2025-01-26 11:36:48

将节点降低到版本12.22.12,并且可以正常工作。最简单的方法是使用NVM:

如何降级节点版本

Downgrade node to version 12.22.12 and it will work. The easiest way to do it is using NVM:

How to downgrade Node version

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文