I keep getting this error.
Executing user command: yarn build
/usr/local/bin/build: line 112: yarn: command not found
I read from Netlify - Manage build dependencies that yarn must be included in my package.json. Yet I see yarn mentioned in my package.json
I've cleaned the cached and deployed again. I tried adding yarn and npm version as a build environment but it still doesn't work. I also looked into How to change your default package manager for your next project? but didn't find a json with the following structure:
{
"cli": {
"packageManager": "yarn"
}
}
FWIW this builds fine locally. It only errors after I push to my remote repo and Netlify is building. What makes this even more weird is that this error doesn't happen if I use the default starter.