鍍金池/ 問答/HTML5  Linux  HTML/ f8app安裝出現(xiàn)code128問題,放棄

f8app安裝出現(xiàn)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 ]

實(shí)在想不出是為什么了,換了幾個(gè)鏡像taobao,cnpm都不行.網(wǎng)上也查不到相關(guān)資料
npm install react-native-push-notification 也是出現(xiàn)一樣的錯(cuò)誤

silly fetchPackageMetaData error for react-native-push-notification。我知道是這一步錯(cuò),但是為什么?怎么解決?

2017-11-15 update

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

然后又出現(xiàn)問題
圖片描述

因?yàn)?fsevent是mac osx系統(tǒng)的,這里應(yīng)該是warn,而不是err
有人說,請用管理員的身份去運(yùn)行cmd,但是對我沒用

最后放棄了,window安裝一大堆不知所措的錯(cuò)誤==

回答
編輯回答
毀憶

git config --global url."https://".insteadOf git://

f8app在window安裝教程
http://blog.csdn.net/industri...

2018年1月2日 08:24