Cannot complete ionic start command

I am trying to start a new project with ionic start myApp blank and selecting React. After I press enter, I see this output.

⠦ Downloading and extracting blank starter (100.00%)
events.js:174
throw er; // Unhandled ‘error’ event
^

Error: TAR_BAD_ARCHIVE: Unrecognized archive format
at Unpack.warn (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/warn-mixin.js:19:40)
at Unpack.warn (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/unpack.js:188:18)
at Unpack.Parser.on._ (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/parse.js:82:14)
at Unpack.emit (events.js:194:15)
at Unpack.[emit] (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/parse.js:286:12)
at Unpack.[maybeEnd] (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/parse.js:402:17)
at Unpack.[consumeChunk] (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/parse.js:434:21)
at Unpack.write (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/parse.js:365:25)
at Unpack.end (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/parse.js:479:14)
at IncomingMessage.onend (_stream_readable.js:651:10)
Emitted ‘error’ event at:
at Unpack.onerror (_stream_readable.js:713:12)
at Unpack.emit (events.js:189:13)
at Unpack.warn (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/warn-mixin.js:19:12)
at Unpack.warn (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/unpack.js:188:18)
[… lines matching original stack trace …]
at Unpack.write (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/parse.js:365:25)

I have uninstalled and reinstalled the @ionic/cli package. This behavior also applied to the Angular option as well and other template options. I am on macOS Catalina, 10.15.3. How can I resolve this?

1 Like

Same error for me too. I have the latest ionic cli (6.1.0) and on Windows 10. Looks like a global problem. Ionic team please fix (Developer time wasted 3 hours).

Here is my WORKAROUND to create a capacitor project. .

  1. Download zip of the github starter project from https://github.com/ionic-team/starters. Unzip to local folder.
  2. Create your project folder myApp.
  3. Copy content from Downloads\starters-master\angular/base to your myApp folder.
  4. Copy content of Downloads\starters-master\angular\official\tabs (or the template of your choice) to myApp folder (Replace duplicate files)
  5. From command line, go to myApp folder
  6. npm install --save @capacitor/core @capacitor/cli
  7. npx cap init
  8. npm install
  9. Ionic serve
  10. Yeah the app launches

I have the same problem, I also asked a question about it but still without results

Anyone who can respond would greatly appreciate it.

I fixed it disabling global proxy. I checked this with --verbose flag.

Check if you set a proxy with

ionic config get proxy -g

So, disable it:

ionic config unset proxy -g
2 Likes

This solved my issue, thank you!

this solve my problem , thanks