我试图建立我的项目,但它的失败,并以下错误:无法恢复插件“科尔多瓦 - 插件失眠”
“运行命令 - 失败 在运行科尔多瓦准备[错误]时出现错误(退出代码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
任何帮助将不胜感激。它可能是重复的,但我做了很多搜索。