PhoneGap中文网

标题: platform add ios 时出现错误 [打印本页]

作者: w6166517    时间: 2016-2-16 17:02
标题: platform add ios 时出现错误
sksdeMacBook-Pro:tempsivat Sivat$ ionic platform add ios
Updated the hooks directory to have execute permissions
/usr/local/lib/node_modules/cordova/node_modules/configstore/index.js:53
                                throw err;
                                ^

Error: EACCES: permission denied, open '/Users/sks/.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 (/usr/local/lib/node_modules/cordova/node_modules/configstore/index.js:34:26)
    at Object.Configstore (/usr/local/lib/node_modules/cordova/node_modules/configstore/index.js:27:44)
    at new UpdateNotifier (/usr/local/lib/node_modules/cordova/node_modules/update-notifier/index.js:34:17)
    at module.exports (/usr/local/lib/node_modules/cordova/node_modules/update-notifier/index.js:123:23)
    at checkForUpdates (/usr/local/lib/node_modules/cordova/src/cli.js:64:20)
    at cli (/usr/local/lib/node_modules/cordova/src/cli.js:116:5)
    at Object.<anonymous> (/usr/local/lib/node_modules/cordova/bin/cordova:41:1)
作者: admin    时间: 2016-2-16 17:41

1.确保是mac下面执行的命令


2.先在命令前面加上sudo

还是不可以的话看看是不是文件权限问题,给对应文件夹设置读写修改权限
作者: w6166517    时间: 2016-2-18 15:52
admin 发表于 2016-2-16 17:41
1.确保是mac下面执行的命令

多谢,加入sudo就好了




欢迎光临 PhoneGap中文网 (http://bbs.phonegap100.com/) Powered by Discuz! X3.2