so why it's not accepting running ionic cordova platform add ios
without sudo
!!!?
Osamas-MacBook-Pro:DawaeyApp osama$ ionic cordova platform add ios
> cordova platform add ios --save
✖ Running command - failed!
[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova platform add ios --save (exit
code 1):
/usr/local/lib/node_modules/cordova/node_modules/configstore/index.js:54
throw err;
^
Error: EACCES: permission denied, open
'/Users/osama/.config/configstore/cordova-config.json'
You don't have access to this file.
at Error (native)
at Object.fs.openSync (fs.js:641:18)
at Object.fs.readFileSync (fs.js:509:33)
at Object.get
(/usr/local/lib/node_modules/cordova/node_modules/configstore/index.js:35:26)
at Object.Configstore
(/usr/local/lib/node_modules/cordova/node_modules/configstore/index.js:28:44)
at Object.<anonymous>
(/usr/local/lib/node_modules/cordova/src/cli.js:39:12)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)