ionic TypeError:Path必须是字符串。收到undefined

时间:2017-05-12 18:12:55

标签: android cordova ionic-framework ionic2 phonegap

我通过离子站点文件安装了离子+ cordova

npm install -g cordova 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)
请求帮助我在谷歌搜索但未找到解决方案:(

系统信息:

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

1 个答案:

答案 0 :(得分:0)

解决了这个问题

第1步:

No route matches [GET] "/images/uploads/user/avatar/...

第2步:

npm uninstall -g ionic