离子配置目录错误。 (怎么解决)

Ionic config directory error. (How to solve)

我在 mac 上使用 ionic 时遇到问题。我克隆了我的 repo 并使用 ionic serve 启动它。但是,如果我使用控件 C 并停止命令 ant 再次启动它,我会收到此错误 "Cannot read property 'IONIC_CONFIG_DIRECTORY' of undefined".

同样的问题。找到解决方案:https://forum.ionicframework.com/t/ionic-commands-not-working-after-update-ionic/146492/3

解决方案:

npm uninstall ionic cordova
npm install ionic cordova