我正在尝试在我正在开发的react-native应用程序中安装react-navigation,但我一直收到这个错误...
Standard error:
npm ERR! code 128
npm ERR! Command failed: C:\John\Applications\cygwin\bin\git.EXE clone -q git://github.com/react-navigation/react-native-tab-view.git C:\Users\John\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-e11f65d1 --config core.longpaths=true
npm ERR! fatal: Invalid path '/cygdrive/c/Users/John/AppData/Roaming/npm-cache/_cacache/tmp/C:\Users\John\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-e11f65d1': No such file or directory
npm ERR! 我对其他包没有问题,而且我有git,它可以工作。我有npm,它可以工作。
到目前为止,我已经从C:\Users\John\AppData\Roaming\npm_cache中手动删除了黑石物理服务器缓存。已运行npm i -g npm已删除package-lock.json
但是什么都不起作用。有什么想法吗?
发布于 2018-04-05 23:51:41
我想通了。对于我的情况,至少我已经通过cygwin安装了git,并且在我的路径上有cygwin。我猜是因为某种原因这个套餐不喜欢这样吧?
但是我从cygwin卸载了git,然后以“正常”的方式安装了它,然后它就工作了。
https://stackoverflow.com/questions/49675766
复制相似问题