&引用;爱奥尼亚cordova平台添加ios“;无法获取平台cordova-ios@0.0.1

&引用;爱奥尼亚cordova平台添加ios“;无法获取平台cordova-ios@0.0.1,ios,cordova,ionic-framework,Ios,Cordova,Ionic Framework,当我运行“ionic cordova platform add ios”时,出现了以下错误。如何修复它 Exception: Using cordova-fetch for cordova-ios@0.0.1 Error: Failed to fetch platform cordova-ios@0.0.1 Probably this is either a connection problem, or platform spec is incorrect. Check

当我运行“ionic cordova platform add ios”时,出现了以下错误。如何修复它

Exception: Using cordova-fetch for cordova-ios@0.0.1

    Error: Failed to fetch platform cordova-ios@0.0.1
    Probably this is either a connection problem, or platform spec is incorrect.
    Check your connection and platform name/version/URL.
    Error: npm: Command failed with exit code 1 Error output:
    npm ERR! code ETARGET
    npm ERR! notarget No matching version found for cordova-ios@0.0.1
    npm ERR! notarget In most cases you or one of your dependencies are requesting
    npm ERR! notarget a package version that doesn't exist.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/thanhnguyen/.npm/_logs/2017-08-25T10_34_19_961Z-debug.log

以下命令应可解决此问题:

cordova平台添加ios@latest


在我的
package.json
中有一个
ios:0.0.1
,我将其删除并得到解决。

可能是您的爱奥尼亚&cordova设置不正确。请卸载并安装again@sunielkalwani非常感谢你!我重新安装了爱奥尼亚和科尔多瓦。我运行“爱奥尼亚科尔多瓦平台添加”ios@latest“,这又起作用了。这是错误的。你不需要卸载或重新安装任何东西。只是添加@latest修复了您的问题,而不是其他问题。