Create-react-native-app: Unable to create my first react native app

Created on 24 May 2018  路  5Comments  路  Source: expo/create-react-native-app

Description

Unable to create my first react native app

Expected Behavior

I have copied command from the getting-started page and run it.

Observed Behavior

yarn-error.log

yarn install v0.23.3
[1/4] Resolving packages...
[2/4] Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/react-native-web-maps/-/react-native-web-maps-0.1.0.tgz: Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?".
info If you think this is a bug, please open a bug report with the information provided in "D:\\react-native\\my-app1\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Failed to install

Environment

PS D:\react-native> npm ls react-native-scripts
D:\react-native
`-- (empty)

PS D:\react-native> npm ls react-native-scripts
D:\react-native
`-- (empty)

PS D:\react-native> npm ls react-native
D:\react-native
`-- (empty)

PS D:\react-native> npm ls expo
D:\react-native
`-- (empty)

PS D:\react-native> node -v
v9.2.0

PS D:\react-native> npm -v
5.5.1

PS D:\react-native> yarn --version
0.23.3

PS D:\react-native> watchman version
watchman : The term 'watchman' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ watchman version
+ ~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (watchman:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
  1. Operating system: Windows 10 Pro x64 OS build: 17134.48
underlying tools

Most helpful comment

@brentvatne Yes, reinstallation of Yarn worked for me.

All 5 comments

appears to be this issue on yarn: https://github.com/yarnpkg/yarn/issues/3141

Same here :/

@brentvatne Yes, reinstallation of Yarn worked for me.

The same thing happened to me. I was able to resolve it by accessing the file via my web browser (Chrome) and authenticating through the proxy. Once I did this, I was able to run the create-react-app command without errors.

npm install -g yarn worked for me, installed [email protected]

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FezVrasta picture FezVrasta  路  3Comments

noelweichbrodt picture noelweichbrodt  路  3Comments

FezVrasta picture FezVrasta  路  3Comments

JackWReid picture JackWReid  路  4Comments

iRoachie picture iRoachie  路  5Comments