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

Topic summary

Users are encountering a “Maximum call stack size exceeded” error when running Shopify CLI commands, particularly npm run generate extension and other Shopify npm commands.

Error Details:

  • The stack trace points to stubborn-fs/dist/retryify.js within the Shopify CLI installation
  • Affects Shopify CLI version 3.54.0

Solution:

  • Running Shopify CLI commands with sudo (elevated permissions) resolves the issue
  • Multiple users confirmed this workaround successfully fixed their problem

Status:

  • The issue appears resolved through the sudo workaround
  • Users requested Shopify Team investigation, but no official response is documented
Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

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!