I am new to Node.js, try to learn express to build my first web application. I got stuck on my very first sample code and need some help to get it running. Before I post th
In rare cases, npm cache may get corrupt. For me, what worked was:
npm cache clean --force
Generally, the package manager will detect corruption and refetch on its own so this is not usually necessary. However, in my case Windows 10 crashed a few times and I suspect this may have been during a fetch operation. Hope it helps someone!
More information: https://docs.npmjs.com/cli/cache