I have also used npm install --verbose
and it showed me that I was using the artifactory server of my last company which I have no more access to, instead of public npm repository. And these URLs are placed in the package-lock.json
so I removed package-lock and it works now.