f8app安装出现code128问题,放弃

图片描述

1652 http fetch GET 304 https://registry.npm.taobao.org/react-native-linear-gradient 69ms (from cache)
1653 silly pacote version manifest for react-native-linear-gradient@1.5.12 fetched in 71ms
1654 silly fetchPackageMetaData error for react-native-push-notification@git://github.com/frantic/react-native-push-notification.git#7142da7ab83f010b6847caf36526044c27a68391 Command failed: C:\Program Files\Git\mingw64\bin\git.EXE clone --depth=1 -q -b master git://github.com/frantic/react-native-push-notification.git C:\Users\linruiyu\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-ea11e18b --config core.longpaths=true
1654 silly fetchPackageMetaData warning: templates not found C:\Users\linruiyu\AppData\Local\Temp\pacote-git-template-tmp\git-clone-64786c24
1654 silly fetchPackageMetaData fatal: early EOF
1654 silly fetchPackageMetaData fatal: read error: Invalid argument
1654 silly fetchPackageMetaData fatal: index-pack failed
1655 verbose stack Error: Command failed: C:\Program Files\Git\mingw64\bin\git.EXE clone --depth=1 -q -b master git://github.com/frantic/react-native-push-notification.git C:\Users\linruiyu\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-ea11e18b --config core.longpaths=true
1655 verbose stack warning: templates not found C:\Users\linruiyu\AppData\Local\Temp\pacote-git-template-tmp\git-clone-64786c24
1655 verbose stack fatal: early EOF
1655 verbose stack fatal: read error: Invalid argument
1655 verbose stack fatal: index-pack failed
1655 verbose stack
1655 verbose stack     at ChildProcess.exithandler (child_process.js:204:12)
1655 verbose stack     at emitTwo (events.js:106:13)
1655 verbose stack     at ChildProcess.emit (events.js:191:7)
1655 verbose stack     at maybeClose (internal/child_process.js:891:16)
1655 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
1656 verbose cwd W:\examples\react-native\f8app
1657 verbose Windows_NT 6.1.7601
1658 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\linruiyu\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
1659 verbose node v6.11.0
1660 verbose npm  v5.4.2
1661 error code 128
1662 error Command failed: C:\Program Files\Git\mingw64\bin\git.EXE clone --depth=1 -q -b master git://github.com/frantic/react-native-push-notification.git C:\Users\linruiyu\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-ea11e18b --config core.longpaths=true
1662 error warning: templates not found C:\Users\linruiyu\AppData\Local\Temp\pacote-git-template-tmp\git-clone-64786c24
1662 error fatal: early EOF
1662 error fatal: read error: Invalid argument
1662 error fatal: index-pack failed
1663 verbose exit [ 1, true ]

实在想不出是为什么了,换了几个镜像taobao,cnpm都不行.网上也查不到相关资料
npm install react-native-push-notification 也是出现一样的错误

silly fetchPackageMetaData error for react-native-push-notification。我知道是这一步错,但是为什么?怎么解决?

2017-11-15 update

解决方法:git config --global url."https://".insteadOf git://

然后又出现问题
图片描述

因为 fsevent是mac osx系统的,这里应该是warn,而不是err
有人说,请用管理员的身份去运行cmd,但是对我没用

最后放弃了,window安装一大堆不知所措的错误==

阅读 4.6k
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题