Why am I seeing a CLI error on Shopify and how to fix it?

To investigate the issue, examine this stack trace:
at openSync (node:fs:579)
at attempt (../../../../usr/local/Cellar/shopify-cli/3.54.0/libexec/lib/node_modules/@shopify/theme/node_modules/stubborn-fs/
dist/retryify.js:33)

RangeError: Maximum call stack size exceeded

1 Like

We are having the same issue.

Shopify Team, can you look into that?

When trying to run “npm run generate extension” or any command with shopify npm it gives this error of “Maximum call stack size exceeded” and "

stubborn-fs/dist/retryify"

I also encounter that issue, any updates???

rerun the command sudo

2 Likes

I figured it out by running the Shopify CLI command with sudo

1 Like

I just signed in ti thank you. You’re a life saver. I’ve been struggling with this for few hours!