React native 我正在linux中使用cmd sudo expo init my app创建新的示例项目。获取git权限错误

React native 我正在linux中使用cmd sudo expo init my app创建新的示例项目。获取git权限错误,react-native,expo,git-clone,React Native,Expo,Git Clone,在做新项目的时候。出错 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

在做新项目的时候。出错

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

我遇到了一个类似的问题,通过安装git并重新启动解决了它。

我也遇到了类似的问题。我在Windows10上使用Expo时遇到了其他问题,所以我拿出了MacBookPro,重新安装了Mojave,然后安装了所有的东西。然后我试图
expo init
一个项目,但立即遇到了这个错误。我的mac电脑也有同样的问题。有什么解决办法吗@DavidCanora@SoftwareTheory我安装了git并重新启动。嗨@DavidCanora谢谢你回来。问题是git已经安装在我的机器上了。下面是我如何解决它的@SoftwareTheory很高兴你找到了解决方案。有趣的是,我在node上遇到了一个问题,因为我使用sudo来安装软件包。必须在没有sudo的情况下重新安装node(还有IIRC-git),才能使一切正常工作。干杯