2017-08-25 114 views
0

当我运行“离子cordova平台添加ios”时,出现以下错误。如何解决它?“离子cordova平台添加ios”无法获取平台[email protected]

Exception: Using cordova-fetch for [email protected] 

    Error: Failed to fetch platform [email protected] 
    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 [email protected] 
    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 
+0

可能是你离子和科尔多瓦没有设置正确。请卸载并重新设置 –

+1

@sunielkalwani非常感谢你! 我重新安装了离子和科尔多瓦。我运行“离子cordova平台添加IOS @最新”,这再次工作。 –

+1

这是错误的。您不需要卸载或重新安装任何东西。只需添加@latest即可解决您的问题,而不是其他问题。 – Emanuel

回答

0

下面的命令应该解决这个问题:

科尔多瓦平台添加IOS @最新