Join us live Sept. 27 – How Sanity and Vercel powered Morning Brew's transformation –>

What is the difference between yarn and npm?

3 replies
Last updated: Feb 9, 2021

Is there a difference between

sanity install @sanity/color-input
and
npm install @sanity/color-input
? is sanity install just a alias for yarn or we actually need to install dependencies through
sanity install
?

Feb 9, 2021, 12:12 AM

sanity install
also adds it to the
plugins
array of
sanity.json
. Apart from that there's no real difference between installing with yarn yourself

Feb 9, 2021, 12:18 AM

You just saved me a bit of “why isn’t sanity color input working” stackoverflow! Thanks Espen!

Feb 9, 2021, 12:19 AM

Happy to help!

Feb 9, 2021, 12:19 AM

Sanity.io: Get the most out of your content

Sanity.io is a platform to build websites and applications. It comes with great APIs that let you treat content like data. Give your team exactly what they need to edit and publish their content with the customizable Sanity Studio. Get real-time collaboration out of the box. Sanity.io comes with a hosted datastore for JSON documents, query languages like GROQ and GraphQL, CDNs, on-demand asset transformations, presentation agnostic rich text, plugins, and much more.

Don't compromise on developer experience. Join thousands of developers and trusted companies and power your content with Sanity.io. Free to get started, pay-as-you-go on all plans.