
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeThe error you're encountering is a Node.js version compatibility issue. The async function* syntax (async generators) requires a more recent version of Node.js than what you currently have installed.
Looking at your error log, you're using @sanity/cli@2.7.4 (Sanity Studio v2), and the syntax error in readdir-glob indicates you're running an older version of Node.js that doesn't support async generators. Async generators were introduced in Node.js 10, so you're likely running Node.js 8 or earlier.
Here's how to fix this:
Check your current Node.js version:
node -vUpgrade to a supported Node.js version:
@sanity/cli@2.7.4 you installed, you should upgrade to at least Node.js 10 or higherInstall Node.js:
nvm install --lts
nvm use --ltsAfter upgrading, try again:
node -v # Verify you're on a newer version
sanity initNote: Since you're starting fresh with the Sanity CLI getting started guide, consider that Sanity Studio v2 (which you're using) is now legacy. The current version is Sanity Studio v4, which requires Node.js 20+ and offers significant improvements. You might want to follow the latest getting started guides instead to avoid working with deprecated tooling from the start.
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