Don't ionic platform ios

i am trying ionic platform ios but it don’t work
this is error message

ionic-jhlblogger git:(gh-pages) ✗  ionic platform ios
Updated the hooks directory to have execute permissions
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: EPERM: operation not permitted, utime '/Users/jiahongl/.cordova/lib/npm_cache/cordova-ios/3.9.2/package/.npmignore'

You probably npm installed modules using sudo and now you have permission issues.

So either you use sudo for this command or you re-install your node environment so that it does not require sudo.

Thank you, the problem has been resolved

for those who have had the same problem, please, follow this tutorial: http://www.johnpapa.net/how-to-use-npm-global-without-sudo-on-osx/

1 Like