A co-worker pulled a gatsby repo from one of our projects and ran some command he shouldnt have. Now he has gatsby 2 installed on a gatsby 1 project. needless to say, everything broke.
Oddly, I am having a hard time finding how to roll back on his local machine.
Does anyone know how to roll back gatsby versions?
When downgrading from gatsby 2 to 1, make sure to check global version of gatsby-cli
as well (latest version of gatsby-cli 1 is 1.1.41-13)
#npm
npm uninstall -g gatsby-cli
npm install -g gatsby-cli^1.1.41-13
#yarn
yarn global remove gatsby-cli
yarn global add gatsby-cli^1.1.41-13
I wish there were a way tolock global package's version, but it seems to be currently impossible.