Facing issue with adding platform


#1

Guys, I’m created new ionic app and after created the new app tried to add ios platform with the command

$ platform add ios

I got this issue

/Users/astm/.node/lib/node_modules/cordova/node_modules/configstore/index.js:53
				throw err;
				^

Error: EACCES: permission denied, open '/Users/astm/.config/configstore/update-notifier-cordova.json'
You don't have access to this file.

    at Error (native)
    at Object.fs.openSync (fs.js:584:18)
    at Object.fs.readFileSync (fs.js:431:33)
    at Object.create.all.get (/Users/astm/.node/lib/node_modules/cordova/node_modules/configstore/index.js:34:26)
    at Object.Configstore (/Users/astm/.node/lib/node_modules/cordova/node_modules/configstore/index.js:27:44)
    at new UpdateNotifier (/Users/astm/.node/lib/node_modules/cordova/node_modules/update-notifier/index.js:34:17)
    at module.exports (/Users/astm/.node/lib/node_modules/cordova/node_modules/update-notifier/index.js:123:23)
    at checkForUpdates (/Users/astm/.node/lib/node_modules/cordova/src/cli.js:64:20)
    at cli (/Users/astm/.node/lib/node_modules/cordova/src/cli.js:114:5)
    at Object.<anonymous> (/Users/astm/.node/lib/node_modules/cordova/bin/cordova:41:1)

How I can fix this issue?


#2

Guys, I’m fixed it by deleted the file update-notifier-cordova.json
and it working now well :slightly_smiling: