- Use linux. There are filenames windows does not like and it causes multiple headaches
- Use node 16.15.0 as noted in readme
- Install an OLDER gatsby-cli globally using
npm install -g [email protected]
- (Skip, this probably did not help) Install an OLDER gatsby globally so it stops whining, using
npm install -g [email protected]
- Update
package.json
to remove the ^ from every gatsby package, then re-runnpm install
- Run
npm run develop
INSTEAD OF gatsby develop, to use local gatsby-cli instead of global one (this was a my-system issue where I had an older node for root. Ugh...) - Undo installing gatsby-cli and gatsby globally (
npm uninstall -g gatsby gatsby-cli
) npm uninstall gatsby-recipes
to try to fix stupid graphql exception in schema creation (it didn't work)- Force a version of graphql to make whatever module is whining freaking stop:
npm install --save [email protected]
- Find every single use of
graphql
inpackage-lock.json
and point it to that version. Also look forgraphql-15
to get modules - Demolish
node_modules
, then reinstallnpm install
- Yell at the moon
- Remove all updates to
package-lock.json
using checkout - Add
"resolutions": {"graphql": "14.7.0"},
to package.json - Run
npx npm-force-resolutions
and pray it rewrites package-lock.json better than I did rm -rf node_modules
thennpm install
- Yell some more
- Entire node_modules folder is hosed, what did this even do...
- Evaporate
package-lock.json
, npm install again - Run
npm ls graphql
(crying optional, but not discouraged) - Hurl rocks skyward
- Run
nmp install [email protected]
- Repeat the
npm ls graphql
command and hope there's less duplication... - It's all red, that must be good right? ... wait it actually is.
- Well, we got here anyway. Shout "FUCK OFF SPACE EGG"
- Repeat until dawn