React Native expo init command failed










2















I wanted to follow this tutorial (https://facebook.github.io/react-native/docs/getting-started.html) to start learning react-native.



I followed the first steps and I ran into some issues on the command line: expo init AwesomeProject



Here's the log :



PS C:UsersANTDreact_native> expo init AwesomeProject2
? Choose a template: blank
[09:06:11] Extracting project files...
Process exited with non-zero code: 2
ERROR: C:UsersANTD.expostarter-app-cacheblank-31.0.0.tar.gz
C:UsersANTD.expostarter-app-cacheblank-31.0.0.tar.gz
Open ERROR: Can not open the file as [gzip] archive


ERRORS:
Is not archive

Process exited with non-zero code: 2
[09:06:11] Customizing project...
[09:06:11] ENOENT: no such file or directory, open 'C:UsersANTDreact_nativeAwesomeProject2app.json'
[09:06:11] Set EXPO_DEBUG=true in your env to view the stack trace.


I searched on the github page and on forums but didn't find info on this.
I also tried this :



deleted files in .expo folder
npm -g uninstall expo-cli --save
npm install -g expo-cli@latest


But same issue.



blank-31.0.0.tar.gz file is empty with only html tags.
Might be the issue but I don't know what to do...



Thanks










share|improve this question
























  • Seems to be a network issue. Can you give a try once more!

    – varit05
    Nov 15 '18 at 13:57















2















I wanted to follow this tutorial (https://facebook.github.io/react-native/docs/getting-started.html) to start learning react-native.



I followed the first steps and I ran into some issues on the command line: expo init AwesomeProject



Here's the log :



PS C:UsersANTDreact_native> expo init AwesomeProject2
? Choose a template: blank
[09:06:11] Extracting project files...
Process exited with non-zero code: 2
ERROR: C:UsersANTD.expostarter-app-cacheblank-31.0.0.tar.gz
C:UsersANTD.expostarter-app-cacheblank-31.0.0.tar.gz
Open ERROR: Can not open the file as [gzip] archive


ERRORS:
Is not archive

Process exited with non-zero code: 2
[09:06:11] Customizing project...
[09:06:11] ENOENT: no such file or directory, open 'C:UsersANTDreact_nativeAwesomeProject2app.json'
[09:06:11] Set EXPO_DEBUG=true in your env to view the stack trace.


I searched on the github page and on forums but didn't find info on this.
I also tried this :



deleted files in .expo folder
npm -g uninstall expo-cli --save
npm install -g expo-cli@latest


But same issue.



blank-31.0.0.tar.gz file is empty with only html tags.
Might be the issue but I don't know what to do...



Thanks










share|improve this question
























  • Seems to be a network issue. Can you give a try once more!

    – varit05
    Nov 15 '18 at 13:57













2












2








2


1






I wanted to follow this tutorial (https://facebook.github.io/react-native/docs/getting-started.html) to start learning react-native.



I followed the first steps and I ran into some issues on the command line: expo init AwesomeProject



Here's the log :



PS C:UsersANTDreact_native> expo init AwesomeProject2
? Choose a template: blank
[09:06:11] Extracting project files...
Process exited with non-zero code: 2
ERROR: C:UsersANTD.expostarter-app-cacheblank-31.0.0.tar.gz
C:UsersANTD.expostarter-app-cacheblank-31.0.0.tar.gz
Open ERROR: Can not open the file as [gzip] archive


ERRORS:
Is not archive

Process exited with non-zero code: 2
[09:06:11] Customizing project...
[09:06:11] ENOENT: no such file or directory, open 'C:UsersANTDreact_nativeAwesomeProject2app.json'
[09:06:11] Set EXPO_DEBUG=true in your env to view the stack trace.


I searched on the github page and on forums but didn't find info on this.
I also tried this :



deleted files in .expo folder
npm -g uninstall expo-cli --save
npm install -g expo-cli@latest


But same issue.



blank-31.0.0.tar.gz file is empty with only html tags.
Might be the issue but I don't know what to do...



Thanks










share|improve this question
















I wanted to follow this tutorial (https://facebook.github.io/react-native/docs/getting-started.html) to start learning react-native.



I followed the first steps and I ran into some issues on the command line: expo init AwesomeProject



Here's the log :



PS C:UsersANTDreact_native> expo init AwesomeProject2
? Choose a template: blank
[09:06:11] Extracting project files...
Process exited with non-zero code: 2
ERROR: C:UsersANTD.expostarter-app-cacheblank-31.0.0.tar.gz
C:UsersANTD.expostarter-app-cacheblank-31.0.0.tar.gz
Open ERROR: Can not open the file as [gzip] archive


ERRORS:
Is not archive

Process exited with non-zero code: 2
[09:06:11] Customizing project...
[09:06:11] ENOENT: no such file or directory, open 'C:UsersANTDreact_nativeAwesomeProject2app.json'
[09:06:11] Set EXPO_DEBUG=true in your env to view the stack trace.


I searched on the github page and on forums but didn't find info on this.
I also tried this :



deleted files in .expo folder
npm -g uninstall expo-cli --save
npm install -g expo-cli@latest


But same issue.



blank-31.0.0.tar.gz file is empty with only html tags.
Might be the issue but I don't know what to do...



Thanks







react-native npm expo






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 15 '18 at 8:31









Aprillion

8,04622661




8,04622661










asked Nov 15 '18 at 8:19









AnthonyDaAnthonyDa

62112




62112












  • Seems to be a network issue. Can you give a try once more!

    – varit05
    Nov 15 '18 at 13:57

















  • Seems to be a network issue. Can you give a try once more!

    – varit05
    Nov 15 '18 at 13:57
















Seems to be a network issue. Can you give a try once more!

– varit05
Nov 15 '18 at 13:57





Seems to be a network issue. Can you give a try once more!

– varit05
Nov 15 '18 at 13:57












1 Answer
1






active

oldest

votes


















1














Same issue here, seems like a network problem to me.



I dug into the source code of expo-cli, found the download link for the template:




"templatesv2": [

"description": "The Blank project template includes the minimum dependencies to run and an empty root component.",
"iconUrl": "https://d306o6r76fnu7o.cloudfront.net/template_icon_blank.png",
"id": "blank",
"name": "Blank",
"url": "https://d306o6r76fnu7o.cloudfront.net/blank-31.0.0.tar.gz",
"version": "31.0.0"
,

"description": "The Tab Navigation project template includes several example screens.",
"iconUrl": "https://d306o6r76fnu7o.cloudfront.net/template_icon_tabs.png",
"id": "tabs",
"name": "Tab Navigation",
"url": "https://d306o6r76fnu7o.cloudfront.net/tabs-31.0.0.tar.gz",
"version": "31.0.0"

],


So I manually download the file and unzip, cd into it and run expo start... and got stuck for about 20 minutes.



After I lost my patience and pressed Ctrl+C to kill this process, then I tried npm run android and it worked!



I also tried npm start afterwards, and it seems to work too.






share|improve this answer

























  • thx but I gave up and I'm using expo snack instead ^^'

    – AnthonyDa
    Nov 15 '18 at 15:25











  • I was getting a zlib error when running expo init or create-react-native-app, downloaded the blank template file archive manually, extracted into a new directory and ran it with npm start, now I'm up and running, thanks!

    – Matt
    Dec 14 '18 at 5:57










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53315048%2freact-native-expo-init-command-failed%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Same issue here, seems like a network problem to me.



I dug into the source code of expo-cli, found the download link for the template:




"templatesv2": [

"description": "The Blank project template includes the minimum dependencies to run and an empty root component.",
"iconUrl": "https://d306o6r76fnu7o.cloudfront.net/template_icon_blank.png",
"id": "blank",
"name": "Blank",
"url": "https://d306o6r76fnu7o.cloudfront.net/blank-31.0.0.tar.gz",
"version": "31.0.0"
,

"description": "The Tab Navigation project template includes several example screens.",
"iconUrl": "https://d306o6r76fnu7o.cloudfront.net/template_icon_tabs.png",
"id": "tabs",
"name": "Tab Navigation",
"url": "https://d306o6r76fnu7o.cloudfront.net/tabs-31.0.0.tar.gz",
"version": "31.0.0"

],


So I manually download the file and unzip, cd into it and run expo start... and got stuck for about 20 minutes.



After I lost my patience and pressed Ctrl+C to kill this process, then I tried npm run android and it worked!



I also tried npm start afterwards, and it seems to work too.






share|improve this answer

























  • thx but I gave up and I'm using expo snack instead ^^'

    – AnthonyDa
    Nov 15 '18 at 15:25











  • I was getting a zlib error when running expo init or create-react-native-app, downloaded the blank template file archive manually, extracted into a new directory and ran it with npm start, now I'm up and running, thanks!

    – Matt
    Dec 14 '18 at 5:57















1














Same issue here, seems like a network problem to me.



I dug into the source code of expo-cli, found the download link for the template:




"templatesv2": [

"description": "The Blank project template includes the minimum dependencies to run and an empty root component.",
"iconUrl": "https://d306o6r76fnu7o.cloudfront.net/template_icon_blank.png",
"id": "blank",
"name": "Blank",
"url": "https://d306o6r76fnu7o.cloudfront.net/blank-31.0.0.tar.gz",
"version": "31.0.0"
,

"description": "The Tab Navigation project template includes several example screens.",
"iconUrl": "https://d306o6r76fnu7o.cloudfront.net/template_icon_tabs.png",
"id": "tabs",
"name": "Tab Navigation",
"url": "https://d306o6r76fnu7o.cloudfront.net/tabs-31.0.0.tar.gz",
"version": "31.0.0"

],


So I manually download the file and unzip, cd into it and run expo start... and got stuck for about 20 minutes.



After I lost my patience and pressed Ctrl+C to kill this process, then I tried npm run android and it worked!



I also tried npm start afterwards, and it seems to work too.






share|improve this answer

























  • thx but I gave up and I'm using expo snack instead ^^'

    – AnthonyDa
    Nov 15 '18 at 15:25











  • I was getting a zlib error when running expo init or create-react-native-app, downloaded the blank template file archive manually, extracted into a new directory and ran it with npm start, now I'm up and running, thanks!

    – Matt
    Dec 14 '18 at 5:57













1












1








1







Same issue here, seems like a network problem to me.



I dug into the source code of expo-cli, found the download link for the template:




"templatesv2": [

"description": "The Blank project template includes the minimum dependencies to run and an empty root component.",
"iconUrl": "https://d306o6r76fnu7o.cloudfront.net/template_icon_blank.png",
"id": "blank",
"name": "Blank",
"url": "https://d306o6r76fnu7o.cloudfront.net/blank-31.0.0.tar.gz",
"version": "31.0.0"
,

"description": "The Tab Navigation project template includes several example screens.",
"iconUrl": "https://d306o6r76fnu7o.cloudfront.net/template_icon_tabs.png",
"id": "tabs",
"name": "Tab Navigation",
"url": "https://d306o6r76fnu7o.cloudfront.net/tabs-31.0.0.tar.gz",
"version": "31.0.0"

],


So I manually download the file and unzip, cd into it and run expo start... and got stuck for about 20 minutes.



After I lost my patience and pressed Ctrl+C to kill this process, then I tried npm run android and it worked!



I also tried npm start afterwards, and it seems to work too.






share|improve this answer















Same issue here, seems like a network problem to me.



I dug into the source code of expo-cli, found the download link for the template:




"templatesv2": [

"description": "The Blank project template includes the minimum dependencies to run and an empty root component.",
"iconUrl": "https://d306o6r76fnu7o.cloudfront.net/template_icon_blank.png",
"id": "blank",
"name": "Blank",
"url": "https://d306o6r76fnu7o.cloudfront.net/blank-31.0.0.tar.gz",
"version": "31.0.0"
,

"description": "The Tab Navigation project template includes several example screens.",
"iconUrl": "https://d306o6r76fnu7o.cloudfront.net/template_icon_tabs.png",
"id": "tabs",
"name": "Tab Navigation",
"url": "https://d306o6r76fnu7o.cloudfront.net/tabs-31.0.0.tar.gz",
"version": "31.0.0"

],


So I manually download the file and unzip, cd into it and run expo start... and got stuck for about 20 minutes.



After I lost my patience and pressed Ctrl+C to kill this process, then I tried npm run android and it worked!



I also tried npm start afterwards, and it seems to work too.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 15 '18 at 16:48









Paul Roub

32.8k85875




32.8k85875










answered Nov 15 '18 at 13:54









westlinwestlin

111




111












  • thx but I gave up and I'm using expo snack instead ^^'

    – AnthonyDa
    Nov 15 '18 at 15:25











  • I was getting a zlib error when running expo init or create-react-native-app, downloaded the blank template file archive manually, extracted into a new directory and ran it with npm start, now I'm up and running, thanks!

    – Matt
    Dec 14 '18 at 5:57

















  • thx but I gave up and I'm using expo snack instead ^^'

    – AnthonyDa
    Nov 15 '18 at 15:25











  • I was getting a zlib error when running expo init or create-react-native-app, downloaded the blank template file archive manually, extracted into a new directory and ran it with npm start, now I'm up and running, thanks!

    – Matt
    Dec 14 '18 at 5:57
















thx but I gave up and I'm using expo snack instead ^^'

– AnthonyDa
Nov 15 '18 at 15:25





thx but I gave up and I'm using expo snack instead ^^'

– AnthonyDa
Nov 15 '18 at 15:25













I was getting a zlib error when running expo init or create-react-native-app, downloaded the blank template file archive manually, extracted into a new directory and ran it with npm start, now I'm up and running, thanks!

– Matt
Dec 14 '18 at 5:57





I was getting a zlib error when running expo init or create-react-native-app, downloaded the blank template file archive manually, extracted into a new directory and ran it with npm start, now I'm up and running, thanks!

– Matt
Dec 14 '18 at 5:57



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53315048%2freact-native-expo-init-command-failed%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Top Tejano songwriter Luis Silva dead of heart attack at 64

ReactJS Fetched API data displays live - need Data displayed static

Evgeni Malkin