question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to create my first react native app

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

18reactions
hriziyacommented, May 28, 2018

@brentvatne Yes, reinstallation of Yarn worked for me.

15reactions
dblockcommented, Jun 28, 2018

npm install -g yarn worked for me, installed yarn@1.7.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not able to create new app using the "create-react-native-app"
To find the correct version of react-native-scripts, first find out the version of create-react-native-app using the command: create-react-native-app -- ...
Read more >
Setting up the development environment - React Native
Run the following command to create a new React Native project called "AwesomeProject": npm; Yarn. npx create-expo-app AwesomeProject
Read more >
Unable to create my first react native app · Issue #665 - GitHub
Description Unable to create my first react native app Expected Behavior I have copied command from the getting-started page and run it.
Read more >
React Native Tutorial: Create Your First App - Shahed Nasser
In this tutorial, you'll learn the basics of creating a React Native app with Expo.
Read more >
5 Most Common React Native Issues That Starters Face
As you create your application and run it, you may face an issue stating, “Your App is not registered.” The reason for this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found