When I run npm install it seems to work fine until part way installing packages. It seems to have no problem with the first half, but then after a while it will
npm install
If it's still relevant or maybe for other people of interest: For me it helped, deleting the package.lock file and running npm cache clean --force.
npm cache clean --force