I faced this problem when I tried to install npm packages using npm install or npm i .
npm update chokidar
the older versions aint compatible with Node v14 and above
When you face such a problem, you just need to run below command if you have npm version 5 or greater
npm cache verify
Otherwise use below command
npm cache clean
And again try to run npm install. I hope it will solve your problem.