1

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.

James Z
  • 12,209
  • 10
  • 24
  • 44
Singh
  • 21
  • 1

1 Answers1

1

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

Andresa Martins
  • 280
  • 2
  • 9