运行时:
fab$ cordova platform add ios
我收到此错误:
Error during untar for
/Users/fab/.cordova/lib/npm_cache/cordova-ios/4.3.1/package.tgz:
Error: EACCES: permission denied, open '/Users/fab/.cordova/lib/npm_cache/cordova-ios/4.3.1/package/CordovaLib/.npmignore' Error: Failed to fetch platform ios Probably this is either a connection problem, or platform spec is incorrect. Check your connection and platform name/version/URL. Error: EACCES: permission denied, open '/Users/fab/.cordova/lib/npm_cache/cordova-ios/4.3.1/package/CordovaLib/.npmignore'
请您参考如下方法:
尝试此修复
rm -rf ~/.cordova