npm install gets stuck at fetchMetadata

This is how I resolved this after spending half an hour:

  1. npm config set registry http://registry.npmjs.org/ --global
  2. npm cache clear --force
  3. setting package-lock.json to {} only
  4. npm install --verbose

node: v12.14.1
npm: v6.13.4

This issue occure when I tried running ng update on angular 6 app to update it to angular 9.

Leave a Comment