ios - "ionic cordova platform add ios"无法获取平台 cordova-ios@0.0.1

标签 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 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 platform add ios@latest

关于ios - "ionic cordova platform add ios"无法获取平台 cordova-ios@0.0.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45879732/

相关文章:

ios - 通过 Segues 持久化

ios - 无法在我的 WKWebView POST 请求上设置 header

android - 一个本地容器(.apk),可以将 html 文件作为应用程序加载到设备中

javascript - Canvas SignaturePad 无法在 Mobile Phonegap 应用程序 (Android) 上清除

angular - Ionic 4 beta 需要很长时间才能编译

ios - Facebook 使用 Firebase 和 LoginButton 登录 IOS

ios - iCarousel 上的缩放变换显示屏幕外区域

android - 链接在我的 HTML5 应用程序上无法正常工作

php - 如何确定 PHP/FFMPEG/PhoneGap 中的视频旋转/方向?

javascript - 使 ionic 载玻片垂直滑动