yarn --update-checksums equivalent with npm code example Example: install dev dependency yarn yarn add nameOfPackage --dev