
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeWelcome back! That's definitely a frustrating error to hit when you're trying to catch up on all the exciting changes. The good news is you're not alone - this getaddrinfo ENOTFOUND error is almost always a network/DNS resolution issue rather than a Node.js version problem.
Based on a similar case in the Sanity community, this was confirmed to be network-related and resolved once the network issues were sorted out. Here's what you can try:
1. Network & DNS troubleshooting
The error means your system can't resolve b1gzrsxl.api.sanity.io to an IP address. Try:
nslookup b1gzrsxl.api.sanity.io or ping b1gzrsxl.api.sanity.io to see if your system can resolve the domainsudo dscacheutil -flushcache; sudo killall -HUP mDNSResponderipconfig /flushdnssudo systemd-resolve --flush-caches*.api.sanity.io2. Verify your project ID
Double-check that b1gzrsxl is still a valid project in your account at sanity.io/manage. The fact that you can log in successfully but then hit this error suggests auth works but the project-specific endpoint doesn't resolve.
3. Node.js version note
Since you've been away for 2 years, heads up that Sanity Studio v4 requires Node.js 20+. You mentioned trying v20 which is perfect - just verify you're actually running it with node --version.
4. Try the interactive approach Instead of passing all those flags, try:
npm create sanity@latestThis might handle the network requests differently during setup.
5. Check npm proxy settings If you're behind a corporate proxy:
npm config get proxy
npm config get https-proxySince the authentication works but project fetching fails, this really points to DNS/firewall issues with the subdomain pattern. Most people find switching networks or flushing DNS resolves it. Let us know if you're still stuck!
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store