After updating the cordova, it was not possible to create the ios / android platform

I have an updated cord to a newer version, and after that I can’t build any platform. I tried to build a new project ( phonegap create ios_222), and after that - cordova platform add ios, and it causes the following error:

Unable to fetch ios platform: Error: EACCES, open '/Users/admin/.cordova/lib/npm_cache/15c23c5a-cordova-ios-3-6-3.lock'

+4
source share
1 answer

I solved this problem (if "admin" is your user):

sudo chmod -R admin /Users/admin/.cordova/lib/npm_cache

Hope that helps

+1
source

All Articles