模板初始化 --->不行 -- TypeError: this.breakLines(...).flat 不是一个函数
在我的机器(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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将节点降低到版本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