2017-08-31 121 views
1

離子科爾多瓦平臺和IOS伊蘇斯離子科爾多瓦平臺添加IOS

✖ Cordova platform adds ios --save - failed! 
[ERROR] Exception: Using Cordova-fetch for [email protected]^4.4.0 

Error: Failed to fetch platform `[email protected]^4.4.0` 
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 254 Error output: 
npm ERR! path 

/Users/zion/Desktop/RSSFeederApp/node_modules/node_modules/file:cordova-dist-dev/CB-11690/cordova-common-1.4.1.tgz 

npm ERR! code ENOENT 
npm ERR! errno -2 
npm ERR! syscall stat 
npm ERR! enoent ENOENT: no such file or directory, stat 
'/Users/zion/Desktop/RSSFeederApp/node_modules/node_modules/file:cordova-dist-dev/CB-11690/cordova-common-1.4.1.tgz' 
npm ERR! enoent This is related to npm not being able to find a file. 
npm ERR! enoent 

npm ERR! A complete log of this run can be found in: 
npm ERR!  /Users/zion/.npm/_logs/2017-08-31T07_48_01_154Z-debug.log 

回答

-1

試試這個降級到5.2.0,並確保您使用的是Mac

ionic platform add ios 
0

對我們來說,這是最常見的npm的破鎖文件的方式引起。

要解決該問題,請刪除package-lock.json並再次運行您的命令。