
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeThe "upstream server is timing out" error you're experiencing when running npm -y create sanity@latest is typically a network connectivity issue where the Sanity CLI can't reach Sanity's servers. Here are several approaches to fix this:
First, verify you're using Node.js 20 or higher, as Sanity Studio v4 requires Node.js version 20+. Run:
node -vIf you're on an older version, upgrade to Node.js 20 or later.
The timeout error suggests a network connectivity problem. Try these steps:
Your npm cache might be corrupted. Clear it with:
npm cache clean --forceThen try creating your Sanity project again.
To get more detailed error information, enable debug logging. On Windows, use:
set DEBUG=sanity:*
npm -y create sanity@latestOr for more detailed network information:
set SANITY_DEBUG=1
npm -y create sanity@latestThis will show you exactly where the timeout is occurring and might reveal the specific issue.
If the issue persists, try:
npx explicitly: npx -y create-sanity@latestyarn create sanity@latestnpm install -g @sanity/cli then running sanity initSince you're on Windows (based on your error path), also try:
If none of these solutions work, the debug output should give you more specific information to share with Sanity support or the community for further assistance.
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