ionic-cli: "ionic start" gets stuck at 100% downloading starter

Description:

When I try generate a new Ionic project, my CLI command gets to “Downloading and extracting <template> starter (100%)” and then just sits there, the spinner endlessly spinning and nothing else happening.

I noticed this issue a few days back, and I’ve tried numerous things to try get around it, including force clearing NPM cache, uninstalling/reinstalling packages and even NodeJS itself, but the same problem persists.

I’ve also tried this in multiple different CLI environments (I use Terminus with Git Bash by default, but I get the same issue directly in CMD and PowerShell).

In each case, I’ve left the command to run for well over 30 minutes, but absolutely nothing changes.

Steps to Reproduce:

Run the command ionic start,

Output:

$ ionic start hello-world sidemenu --verbose
  ionic:lib Terminal info: { ci: false, shell: 'C:\\Program Files\\Git\\usr\\bin\\bash.exe', tty: true, windows: true } +0ms
  ionic:lib CLI global options: { _: [ 'start', 'hello-world', 'sidemenu' ], help: null, h: null, verbose: true, quiet: null, interactive: true, color: true, confirm: null, json: null, project: null, '--': [] } +10ms
  ionic Context: { binPath: 'C:\\Users\\agreeff\\AppData\\Roaming\\npm\\node_modules\\ionic\\bin\\ionic', libPath: 'C:\\Users\\agreeff\\AppData\\Roaming\\npm\\node_modules\\ionic', execPath: 'D:\\workspace\\sandbox', version: '5.2.8' } +0ms
  ionic:lib:telemetry Sending telemetry for command: 'ionic start' [ 'hello-world',
  ionic:lib:telemetry   'sidemenu',
  ionic:lib:telemetry   '--verbose',
  ionic:lib:telemetry   '--interactive',
  ionic:lib:telemetry   '--color',
  ionic:lib:telemetry   '--project-id=hello-world' ] +0ms
√ Preparing directory .\hello-world - done!
  ionic:commands:start Tar extraction created for D:\workspace\sandbox\hello-world +0ms
  superagent GET https://d2ql0qc7j8u4b2.cloudfront.net/angular-official-sidemenu.tar.gz +0ms
/ Downloading and extracting sidemenu starter
/ Downloading and extracting sidemenu starter (100.00%)

My ionic info:

Note: this only shows global info because I’m obviously not in a project here…

Ionic:

   Ionic CLI : 5.2.8

Utility:

   cordova-res : 0.6.0
   native-run  : 0.2.7 (update available: 0.2.8)

System:

   NodeJS : v10.15.1
   npm    : 6.11.3
   OS     : Windows 10

Other Information:

Any requests for more info?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 9
  • Comments: 53 (12 by maintainers)

Most upvoted comments

Hey everyone, looks like the issue was in a dep of a dep, minipass.

https://github.com/isaacs/minipass/commit/1d5623a62ba8f64753a5d5ec9a665789000db858

They’ve released a fix, so you should be able to do

npm uninstall -g ionic
npm install -g ionic

This will update you to the latest minipass release.

We’re following things over here

https://github.com/isaacs/minipass/issues/9

We need minipass to update

Hey everyone, this should be fixed again. All you should need to do is

npm uninstall -g ionic
npm install -g ionic

sigh looks like minpass broke things again. Looking into stuff, hang tight.

Same problem stuck at Downloading and extracting tabs starter (100.00%) Tried LTE and latest Node JS but still stuck. Did this problem only happened today?

I noticed this last night when trying to start a new project on my personal laptop, then I reproduced it this morning on my work desktop. last time I created a new project was a few weeks back, so I’m honestly not sure when this started…

I can’t find many people asking about it online though, so gauging by the responses here, I’d say this is a rather fresh issue.

Same issue than all the rest:

  • Mojave -Fresh npm install -Able to create a project only with conference template

Thanks in advance for your help @mhartington

Hello everyone, looking into this.

Same issue, tried: npm uninstall -g ionic npm install -g ionic@latest 屏幕快照 2019-09-24 下午1 50 35

Ionic: Ionic CLI : 5.4.1

System: NodeJS : v10.16.3 npm : 6.11.3 OS : macOS Mojave 10.14.6 (18G95)

I am also getting this error, after trying the solution. Also tried reinstalling Node and ionic.

Still getting this error: “Downloading and extracting blank starter (100.00%)” After running:

npm uninstall -g ionic npm install -g ionic

It seems this is related to only tabs, sidemenu and blank

If you run ionic start new-app my-first-app or ionic start new-app conference then the clone completes successfully

nice catch, I hadn’t noticed that specifically… perhaps this is related to the source for the app template then? tabs, sidemenu and blank seem to download an archive, while my-first-app and conference clone a remote Git repo.