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
可能是你離子和科爾多瓦沒有設置正確。請卸載並重新設置 –
@sunielkalwani非常感謝你! 我重新安裝了離子和科爾多瓦。我運行「離子cordova平臺添加IOS @最新」,這再次工作。 –
這是錯誤的。您不需要卸載或重新安裝任何東西。只需添加@latest即可解決您的問題,而不是其他問題。 – Emanuel