ionic TypeError: Path must be a string. Received undefined

ionic TypeError: Path must be a string. Received undefined

我通过 ionic 站点文档安装了 ionic + cordova

npm install -g cordova ionic

安装完成后我 运行 ionic 命令...但 ionic 不起作用!

我收到错误:

    C:\Users\Administrator>ionic info
TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.resolve (path.js:186:7)
    at Project.BaseConfig (C:\Users\Administrator\AppData\Roaming\npm\node_modul
es\ionic\node_modules\@ionic\cli-utils\dist\lib\config.js:27:30)
    at Project (C:\Users\Administrator\AppData\Roaming\npm\node_modules\ionic\no
de_modules\@ionic\cli-utils\dist\lib\project.js:25:1)
    at C:\Users\Administrator\AppData\Roaming\npm\node_modules\ionic\dist\index.
js:54:25
    at next (native)
    at fulfilled (C:\Users\Administrator\AppData\Roaming\npm\node_modules\ionic\
dist\index.js:4:58)

请帮助我,我在 google 中搜索了很多但没有找到解决方案:(

系统信息:

    windows 7
node js 6
npm 3
sdk android installed + path 
java installed + path
apache ant installed + path

这个问题被

解决了

第 1 步:

npm uninstall -g ionic

第 2 步:

npm install -g ionic@canary