👀 See Sanity in action: Watch product demo now →

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 – build remarkable experiences at scale

Sanity is a customizable solution that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.