如何将kleur@2.0.2升级到kleur3

时间:2019-03-23 23:16:46

标签: react-native expo

我正在使用expo init建立一个react native项目。我选择了expo-template-tab。但是,我收到此错误

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 ERR! code 1
npm ERR! Command failed: git clone --depth=1 -q -b v0.22.1-exp.0 git://github.com/expo/react-native-maps.git /home/osborne/.npm/_cacache/tmp/git-clone-9261e1d2
npm ERR! /home/osborne/.npm/_cacache/tmp/git-clone-9261e1d2/.git: Permission denied
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/osborne/.npm/_logs/2019-03-23T23_10_23_777Z-debug.log
Process exited with non-zero code: 1
Set EXPO_DEBUG=true in your env to view the stack trace.

1 个答案:

答案 0 :(得分:0)

我搜索了此问题,看来您的机器上缺少git(或者它不在$ PATH中)。 您必须从此处安装它:https://git-scm.com/download/win