模板初始化--->不行 -- 类型错误: this.breakLines(...).平面不是一个函数



在我的机器(窗口(中设置本地时,我在运行";模版初始化";

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.

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

将节点降级到12.22.12版本,它就可以工作了。最简单的方法是使用NVM:

如何降级节点版本

最新更新