当我运行“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/