cli
cli copied to clipboard
CLI issue on everything
Describe the bug
After installing netlify-cli, the only thing I can do is "netlify –help" everything else returns the following error:
RangeError: Maximum call stack size exceeded
this includes "netlify" "netlify init" etc.
Please help me with what/how to troubleshoot on my mac. Thanks!
Steps to reproduce
npm install netlify-cli -g netlify init
Configuration
can't run anything even to start project
Environment
sh: envinfo: command not found
Some other useful info. I can install other npm fine. Ios is Sonoma version 14.4.
+1
Is any stack trace shown with the error?
Hey Abraham! In my terminal I can use Netlify --help, which shows the possible commands however anything else give me
@.*** Portfolio % netlify login › RangeError: Maximum call stack size exceeded"
I am supper baffled on this, I'm not sure if there is something wrong on my end I can use the netlify on my old mac, but its a dif OS so not sure if there is an issue there or if it's path related. I believe I have done everything needed for this to work but alas it does not. Any help would be amazing. Thanks!
On Sat, Mar 8, 2025 at 12:08 PM Abraham Guo @.***> wrote:
Is any stack trace shown with the error?
— Reply to this email directly, view it on GitHub https://github.com/netlify/cli/issues/7092#issuecomment-2708398870, or unsubscribe https://github.com/notifications/unsubscribe-auth/APIR62JERB3IQ23TBA7X3F32TMPYLAVCNFSM6AAAAABYPQA4H6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMBYGM4TQOBXGA . You are receiving this because you authored the thread.Message ID: @.***> [image: abrahamguo]abrahamguo left a comment (netlify/cli#7092) https://github.com/netlify/cli/issues/7092#issuecomment-2708398870
Is any stack trace shown with the error?
— Reply to this email directly, view it on GitHub https://github.com/netlify/cli/issues/7092#issuecomment-2708398870, or unsubscribe https://github.com/notifications/unsubscribe-auth/APIR62JERB3IQ23TBA7X3F32TMPYLAVCNFSM6AAAAABYPQA4H6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMBYGM4TQOBXGA . You are receiving this because you authored the thread.Message ID: @.***>
no stack trace ,just netlify –help can work
Having the same issue! I can't trace the error as well. It's just giving Range Error: Maximum call stack size extended
Same for me.
Happening here too; any and all netlify xyz commands throwing the same error: tried installing both globally & locally within my specific project - same result. Every single command (except -h) throws the same RangeError.
FWIW, running Node v22.14.0 and installed ^19.0.2 of netlify-cli
Tried installing 18.1.0 just to drop to last major version - same problem.
I am unable to reproduce this error with the Node.js and Netlify CLI version reported. The bug form asks for the output of this command:
npx envinfo --system --binaries --npmPackages netlify-cli --npmGlobalPackages netlify-cli
However, that output has not been provided by anyone on the issue. Would someone that is experiencing this error please provide the output of the command above?
I do see this provided in the original post:
sh: envinfo: command not found
That is an error and not the output of that command. You will need to install envinfo to resolve that error first. The output of that command is key to finding the root cause here.
OP here, running
npx envinfo --system --binaries --npmPackages netlify-cli --npmGlobalPackages netlify-cli
gets me:
System: OS: macOS 14.4 CPU: (14) arm64 Apple M3 Max Memory: 663.08 MB / 36.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.13.1 - /usr/local/bin/node npm: 11.2.0 - /usr/local/bin/npm npmPackages: netlify-cli: ^12.1.1 => 12.1.1 npmGlobalPackages: netlify-cli: 19.0.2
The older netlify was installed trying to see if it was a recent version issue, and that version still runs on my other computer fine
Running npx envinfo --system --binaries --npmPackages netlify-cli --npmGlobalPackages netlify-cli gives me
System: OS: macOS 15.3.1 CPU: (8) arm64 Apple M1 Memory: 162.55 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.2.0 - /usr/local/bin/node Yarn: 1.22.22 - /usr/local/bin/yarn npm: 10.8.1 - /usr/local/bin/npm npmGlobalPackages: netlify-cli: 19.0.2
Has anyone with this issue been able to identify a prior version of netlify-cli that works? or any idea what changed before this started happening?
This is difficult to investigate as is! Anything you all can share might be useful. Thanks :)
@serhalp I tried a very versions back and had the problem; finally installed 17.38.1 and it worked. It was an arbitrary pick.
similar issue
Hey @serhalp, OP. I was away on a trip. Why is this labeled Missing Information. I've responded to the request for the error and haven't gotten anything in response except for your comment/question. Still unable to use netlify cli, picking arbitrary versions has done nothing to help. Thanks
cc: @overlordofmu