Npm install hangs frequently


#1

My Environment Details -

cli packages: (\npm\node_modules)
** @ionic/cli-utils : 1.19.2**
** ionic (Ionic CLI) : 3.20.0**
global packages:
** cordova (Cordova CLI) : 8.0.0**
local packages:
** @ionic/app-scripts : not installed**
** Cordova Platforms : none**
** Ionic Framework : not installed**
System:
** Android SDK Tools : 26.1.1**
** Node : v9.11.1**
** npm : 6.0.0**
** OS : Windows 10**
Environment Variables:
** ANDROID_HOME : \AppData\Local\Android\Sdk**
Misc:
** backend : pro**

I am trying to build an Ionic app with Couchbase-lite as the database.

Most of the times my npm install hangs at different points.
As I am typing this answer, npm install is stuck at the following line

$ npm install
[ …] / fetchMetadata: sill pacote range manifest for copy-descriptor@^0.1.0 fetched in 203ms

I tried many things as -

  • Cleaning npm cache
  • Deleting package-lock.json file
  • Updating everything to latest versions.

Sometimes it works but most of the times it doesn’t.
I am not able to fix this issue permanently.
Any help would be appreciated.

Thanks.