Follow one of these steps to upgrade Gridsome to latest version.
yarn upgrade gridsome --latest
npm install gridsome@latest
If you have problems after upgrading try remove .cache folder and run yarn again.
.cache
yarn