Skip to content

React Native show message "[zlib: unexpected end of file" when create app #21288

Closed
@astute08

Description

@astute08

Hi everyone

I'm a newbie for react native.

Today, I got some problems when I create react native app by create-react-native-app ProjectName

? Choose a template: (Use arrow keys)
blank
The Blank project template includes the minimum dependencies to run and an empty root component.
tabs
The Tab Navigation project template includes several example screens.

something show on my screen and I choose one choice (blank).
I never seen something like that before because when I input create-react-native-app ProjectName to terminal or cmd React-Native just created react-native app project to me.

and when I selected Blank on cmd screen show something like this to me

D:\Project>create-react-native-app myapp11
? Choose a template: blank
[17:14:03] Extracting project files...
Process exited with non-zero code: 2
ERROR: Unexpected end of data : blank-30.1.0.tar

Process
exited with non-zero code: 2
[17:14:04] zlib: unexpected end of file
[17:14:04] Set EXPO_DEBUG=true in your env to view the stack trace.

And here , this is react-native info

D:\Project>node -v
v8.12.0

D:\Project>npm-v
6.4.1

D:\Project>yarn -v
1.9.4

D:\Project>react-native -v
react-native-cli: 2.0.1
react-native: n/a - not inside a React Native project directory

I find solution to solve it but I can't .
Pls help Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions