简体   繁体   English

Ionic Cordova平台安装错误

[英]Ionic Cordova Platform Installing Error

I have been trying to use Ionics CLI to regenerate all of the icon and splash images. 我一直在尝试使用Ionics CLI重新生成所有图标和启动图像。 So I had to install IOS and Android platforms, I installed IOS without a hitch, but installing android has been giving me a problem. 因此,我必须安装IOS和Android平台,安装IOS的过程很顺利,但是安装android却给我带来了问题。 Here is what I get after I run this line in Terminal. 这是在Terminal中运行此行后得到的结果。 Any help would be appreciated. 任何帮助,将不胜感激。

ionic cordova platform add android 离子科尔多瓦平台添加Android

Discovered plugin "cordova-plugin-email-composer" in config.xml. Adding it to the project

Failed to restore plugin "cordova-plugin-email-composer" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin https://github.com/katzer/cordova-plugin-email-composer.git#0.8.2 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! code ENOPACKAGEJSON
npm ERR! package.json Non-registry package missing package.json: git+https://github.com/katzer/cordova-plugin-email-composer.git#0.8.2.
npm ERR! package.json npm can't find a package.json file in your current directory.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/Fin/.npm/_logs/2018-05-28T14_07_22_673Z-debug.log

Discovered plugin "com.rjfun.cordova.iad" in config.xml. Adding it to the project
Failed to restore plugin "com.rjfun.cordova.iad" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin com.rjfun.cordova.iad@^2.0.4 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! code E404
npm ERR! 404 Not Found: com.rjfun.cordova.iad@^2.0.4

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/Fin/.npm/_logs/2018-05-28T14_07_31_437Z-debug.log

Running command: /Users/Fin/fflow/hooks/after_prepare/010_add_platform_class.js /Users/Fin/fflow

Running command: /Users/Fin/fflow/hooks/after_prepare/020_remove_sass_from_platforms.js /Users/Fin/fflow

--save flag or autosave detected
Saving android@~7.0.0 into config.xml file ...
[ERROR] Exception: 
--save flag or autosave detected
Saving android@~7.0.0 into config.xml file ...
[ERROR] Exception: 

Remove old Platform and then install new Platform 删除旧平台,然后安装新平台

cordova platform remove android

cordova platform add android@7.1.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM