Deployment error due to missing Sanity package resolved
I can help you with this! The error you're seeing is a 404 Not Found error for the @sanity/core@2.36.2 package. This is happening because something in your project's dependencies is trying to fetch the package from an incorrect URL format.
What's causing your error
The 404 error typically happens due to one of these issues:
- Corrupted package-lock.json or node_modules - Sometimes npm's lock file can reference package URLs that don't resolve correctly
- A typo or formatting issue in package.json - The dependency might be incorrectly specified
- npm registry caching issues - Occasionally the registry has temporary problems serving older packages
The fact that you're on @sanity/core@2.36.2 tells me you're running Sanity Studio v2, which reached its end of life on April 1, 2024. While v2 packages technically still exist in the npm registry, they're no longer maintained, and deployment issues like this are becoming more common as the ecosystem moves forward.
What you should do
Since you mentioned you're not a developer, you'll definitely want to bring in someone with development experience to help with this. Here are your best options:
1. Hire a Sanity expert
- Check out the Sanity Exchange to find certified partners and agencies who specialize in Sanity
2. Post in the Sanity Community Slack
- Join the Sanity Community Slack where developers can offer real-time guidance (there's a #help channel specifically for this)
3. If you have a paid Sanity plan
- Contact Sanity support directly through your dashboard for assistance
What your developer will need to do
A developer can try a quick fix first:
- Delete
package-lock.jsonandnode_modulesfolder - Clear npm cache with
npm cache clean --force - Run
npm installagain
However, since v2 is no longer supported, they should really upgrade your project to Studio v3 (which has been the current version since December 2022). The migration involves:
- Updating to a single
sanitynpm package instead of multiple v2 packages like@sanity/core - Converting
sanity.jsonconfig files tosanity.config.js - Updating to React 18
- Replacing any v2 plugins with v3-compatible versions
Good news: Your content and data are completely safe - this is just a code/configuration update for your Studio interface. The migration is well-documented and a developer familiar with Sanity should be able to handle it.
Don't try to fix this yourself if you're not comfortable with code. Getting proper help now will save you headaches down the road!
Sanity β Build the way you think, not the way your CMS thinks
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.