Glad you are learning from this. Often, bugs force us to learn.
At this point, it sounds like, for one or more previous projects, you installed a lot of packages globally - this should only rarely be done.
I would suggest uninstalling all global packages with something like:
Let us know if this works.