I've had this problem some times and hadn't been able to figure out when it happened. Checking some comments above I could realize that it happened when I was working with docker environments but didn't run npm install locally so I did it as some said before and it worked. If you are using docker maybe it could help