Cannot deploy new v4 strapi project to Heroku or Render - getting "401 Unauthorized" error on fontawesome request

I just had the same issue. The problem was that at ~/.npmrc I had a file with tokens from a previous project. This made it so that in yarn.lock there were references to npm.fontawesome.com instead of https://registry.yarnpkg.com/@fortawesome/...

So:

  1. remove ~/.npmrc
  2. remove lock file
  3. install dependencies again

This solved the issue for me