0
我最近將cordova升級到6.0版,並且也遷移到Android Studio。 但我運行時錯誤:EACCES:權限被拒絕,打開'/Users/root/.config/configstore/update-notifier-cordova.json'您無權訪問此文件
cordova platform add android I get this error
Error: EACCES: permission denied, open '/Users/sachinsharma/.config/configstore/update-notifier-cordova.json'
You don't have access to this file.
如果我用sudo運行它的工作原理。但我懷疑這不是正確的方法,因爲它稍後會失敗。任何人都可以提出其他解決方案