All Articles

Update package.json Using Yarn

Do you know yarn upgrade, yarn upgrade --latest and yarn upgrade -interactive-upgrade only update the yarn.lock file?

I’ve tried tons of solutions using yarn blablabla with no luck.

The ultimate spell is… npm-check-updates plus yarn.

Here is the code:

yarn global add npm-check-updates
ncu -u
yarn

Published Sep 2, 2019

Personal blog. I share frontend development technique and life.