我试图在我正在处理的反应原生应用中安装tree_node
并且我一直收到此错误....
react-navigation
我对其他软件包没有任何问题,而且我有git并且它有效。我有npm,它的工作原理。
到目前为止,我已经从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!
手动删除了cpm缓存。跑C:\Users\John\AppData\Roaming\npm_cache
已删除npm i -g npm
但没有任何效果。有任何想法吗?
答案 0 :(得分:0)
想出来。对于我的情况,至少我通过cygwin安装了git并且在我的路径中安装了cygwin。我想由于某种原因,这个包不喜欢那个?
但是我从cygwin中卸载了git,然后以“正常”的方式安装它,然后就可以了。