`fsevents` causing Yarn `0028` error deploying to Netlify and "The lockfile would have been modified"

@swizzard The error you’re seeing means that your yarn.lock file needs to be updated and committed to your git repo. This is necessary after you make changes to package.json dependencies.

:warning: You should not need to set that Env Var as it will end up getting you in trouble in the long run.

Do this locally:

  • run yarn or yarn install (same thing)
  • there should be changes to the file yarn.lock
  • commit those changes to git and then push to your repo
  • when you redeploy, you should see a clean build log (reminder to remove the env var)

Please let me know if this doesn’t work for you.