Я установил Nodejs, Java, Python и Android Studio и установил create-реакции-native-appby, выполнив команду
npm install -g create-react-native-app
после этого я бегу
sudo create-react-native-app MyFirstNative
но получаю ошибку
Я обновил npm, expo-cli и т. Д. И даже использовал команду с sudo
, даже тогда получая ошибку разрешения
azad@azadhussain:/var/www/html/githubrepo$ sudo create-react-native-app MyFirstNative
┌─────────────────────────────────────────────────────────────┐
│ │
│ There is a new version of expo-cli available (2.17.2). │
│ You are currently using expo-cli 2.17.1 │
│ Run `npm install -g expo-cli` to get the latest version │
│ │
└─────────────────────────────────────────────────────────────┘
? Choose a template: expo-template-tabs
✔ Please enter a few initial configuration values.
Read more: https://docs.expo.io/versions/latest/workflow/configuration/ · 100% completed
Extracting project files...
Customizing project...
Initialized a git repository.
Installing dependencies...
npm WARN deprecated core-js@1.2.7: core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
npm WARN deprecated kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/expo/react-native-maps.git
npm ERR!
npm ERR! fatal: failed to stat '/var/www/html/githubrepo/MyFirstNative': Permission denied
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /home/azad/.npm/_logs/2019-05-14T04_30_21_275Z-debug.log
npm exited with non-zero code: 1
Set EXPO_DEBUG=true in your env to view the stack trace.
azad@azadhussain:/var/www/html/githubrepo$