我試圖建立我的項目,但它的失敗,並以下錯誤:無法恢復插件「科爾多瓦 - 插件失眠」
「運行命令 - 失敗 在運行科爾多瓦準備[錯誤]時出現錯誤(退出代碼1):
Discovered plugin "cordova-plugin-insomnia" in config.xml. Adding it to the project
Failed to restore plugin "cordova-plugin-insomnia" from config.xml. You might need to try adding it again.
Error: Failed to fetch plugin
[email protected]+https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.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! git clone
C:\Users\<USER>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-EddyVerbruggen-Insomnia-PhoneGap-Plugin-git-223
我嘗試使用安裝科爾多瓦插件:
$離子科爾多瓦插件添加科爾多瓦 - 插件失眠$ NPM安裝 --save @離子本地/失眠
科爾多瓦插件添加 https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.git
NPM我科爾多瓦 - 插件失眠
,但是,沒有一個命令的作品。
錯誤產生的:
NPM ERR!命令失敗:git -c core.longpaths = true克隆 C:\ Users \\ AppData \ Roaming \ npm-cache_git-remotes \ git-https-github-com -EddyVerbruggen-Insomnia-PhoneGap-Plugin-git-223bcd2c C :\ Users \\ AppData \ Local \ Temp \ npm-6956-d2de50d1 \ git-cache-d4203f45 \ 8d2c3b01fc0c11d9bc36bc1b5f9a141bd097f908 npm ERR!克隆到 'C:\ Users \\ AppData \ Local \ Temp \ npm-6956-d2de50d1 \ git-cache-d4203f45 \ 8d2c3b01fc0c11d9bc36bc1b5f9a141bd097f908'... npm ERR! git-upload-pack 'C:\ Users \\ AppData \ Roaming \ npm-cache_git-remotes \ git-https-github-com -EddyVerbruggen-Insomnia-PhoneGap-Plugin-git-223bcd2c': git-upload-pack :未找到命令 npm ERR!致命:無法從遠程存儲庫讀取。 npm ERR! npm ERR!請確保您擁有正確的訪問權 npm ERR!並存在該存儲庫。 npm ERR! npm ERR! npm ERR!如果您需要幫助,您可以在以下網址報告此錯誤: npm ERR! https://github.com/npm/npm/issues npm ERR!請包括以下任何支持請求的文件: npm ERR! C:\ Workspace \ XXXXXX-mobile-app \ node_modules \ npm-debug.log 將推送字符串array {「name」:「lang」,「titles」:[「English(US)」,「English(UK)」 ], 「值」: 「EN-US」, 「EN-GB」]} Android的首選項文件已成功生成 iOS設置包已成功生成
我使用以下版本 -
- 節點:V7.4.0
- NPM:V4.0.5
- 混帳:v1.9.5
- Ionic:2
任何幫助將不勝感激。它可能是重複的,但我做了很多搜索。