I am creating new sample project in linux using cmd sudo expo init my-app. getting git permission error

Viewed 192

While making new project. Getting error,

silly fetchPackageMetaData error for react-native-maps@github:expo/react-native-maps#v0.22.1-exp.0 
Command failed: /usr/bin/git clone --depth=1 -q -b v0.22.1-exp.0 git://github.com/expo/react-native-maps.git /home/avtar/.npm/_cacache/tmp/git-clone-f6a69039764 
silly fetchPackageMetaData /home/avtar/.npm/_cacache/tmp/git-clone-f6a69039/.git: Permission denied
1 Answers

I was experiencing a similar problem and fixed it by installing git and rebooting.

Related