Unable to create my first react native app
I have copied command from the getting-started page and run it.
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
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
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]
Most helpful comment
@brentvatne Yes, reinstallation of Yarn worked for me.