I never understand these capitalism criticisms. It’s like criticizing modern medicine because Coronavirus exists. Yeah, it’s not a perfect system but I’m not going to switch to homeopathy just yet.
The real problem is that some people want to make shortages like this permanent by going full communism.
However, laws against price gouging are not the whole solution.
Laws against price gouging do not prevent hoarding or panic buying. Thus, holding the price of the goods artificially low in the face of increased demand leads to shortages. (Unsurprisingly)
If you have laws against price gouging you need to have laws that limit the number of units purchased to reduce hoarding. Otherwise, you inevitably will have short term shortages.