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)
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 "