In my case, there was a package.json
and package-lock.json
in the directory that contained my repo/project and that was interfering with Yarn somehow. Deleting those and then reinstalling node_modules
(and resetting other things) did the trick for me.