2017-07-10 54 views
1

我正在使用Wiki指南來測試插件。PhoneRTC:git子模塊壞了

當我執行命令:然後

cordova plugin add https://github.com/alongubkin/phonertc.git 

的PC stucks幾分鐘給出了錯誤(從日誌):

0 info it worked if it ends with ok 
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 
1 verbose cli 'C:\\Users\\Sandro\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js', 
1 verbose cli 'install', 
1 verbose cli 'https://github.com/alongubkin/phonertc.git', 
1 verbose cli '--save' ] 
2 info using [email protected] 
3 info using [email protected] 
4 verbose npm-session e0fe9efdcc26a6c4 
5 silly install loadCurrentTree 
6 silly install readLocalPackageData 
7 silly fetchPackageMetaData error for git+https://github.com/alongubkin/phonertc.git Command failed: c:\Program Files\Git\mingw64\libexec\git-core\git.EXE submodule update -q --init --recursive 
7 silly fetchPackageMetaData fatal: 'submodule' appears to be a git command, but we were not 
7 silly fetchPackageMetaData able to execute it. Maybe git-submodule is broken? 
8 verbose stack Error: Command failed: c:\Program Files\Git\mingw64\libexec\git-core\git.EXE submodule update -q --init --recursive 
8 verbose stack fatal: 'submodule' appears to be a git command, but we were not 
8 verbose stack able to execute it. Maybe git-submodule is broken? 
8 verbose stack 
8 verbose stack  at ChildProcess.exithandler (child_process.js:270:12) 
8 verbose stack  at emitTwo (events.js:125:13) 
8 verbose stack  at ChildProcess.emit (events.js:213:7) 
8 verbose stack  at maybeClose (internal/child_process.js:897:16) 
8 verbose stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5) 
9 verbose cwd C:\Users\Sandro\AndroidStudioProjects\[PhoneGap]\phonertc_demo\node_modules 
10 verbose Windows_NT 10.0.14393 
11 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Sandro\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "https://github.com/alongubkin/phonertc.git" "--save" 
12 verbose node v8.1.3 
13 verbose npm v5.1.0 
14 error code 128 
15 error Command failed: c:\Program Files\Git\mingw64\libexec\git-core\git.EXE submodule update -q --init --recursive 
15 error fatal: 'submodule' appears to be a git command, but we were not 
15 error able to execute it. Maybe git-submodule is broken? 
16 verbose exit [ 1, true ] 

科爾多瓦,節點,NPM工作。 Git也是,我使用的是Mingw64。

從MinGW的自己,嘗試提出了另一個錯誤:

Error: Failed to fetch plugin https://github.com/alongubkin/phonertc.git via registry. 
Probably this is either a connection problem, or plugin spec is incorrect. 
Check your connection and plugin name/version/URL. 
Error: cmd: Command failed with exit code 1 Error output: 
npm ERR! cb() never called! 

npm ERR! This is an error with npm itself. Please report this error at: 
npm ERR!  <https://github.com/npm/npm/issues> 

npm ERR! A complete log of this run can be found in: 
npm ERR!  C:\Users\Sandro\AppData\Roaming\npm-cache\_logs\2017-07-10T11_26_43_415Z-debug.log 

我已經嘗試從管理員控制檯,同樣的錯誤發動一切。

找不到問題。任何暗示都是值得歡迎的。

+0

你嘗試自行運行'git.EXE子模塊更新-q --init --recursive'? – n00dl3

+0

你好@n00dl3,是的,我試過了,它導致了同樣的錯誤(致命的:'submodule'似乎是一個git命令,但是...)。所以我從一個mingw控制檯(也作爲管理員)運行最初的命令,這導致我報告的第二個錯誤。無論如何,這兩個都很奇怪,因爲我正在處理具有適當權限的文件夾。 –

回答

0

似乎無法使用新的獲取邏輯獲取此(和其他)插件。 爲了使中加入插件的工作,你必須使用舊的,加入

--nofetch

標誌。添加插件的命令是:

科爾多瓦插件添加https://github.com/alongubkin/phonertc.git --nofetch