'ionic' 不是内部或外部命令,也不是可运行的程序或批处理文件。

1、重装NodeJS

2、配置NodeJS全局和缓存路径

   npm config set prefix “D:\Program Files\npm\node_global”  

   npm config set cache  “D:\Program Files\npm\node_cache”

3、配置环境变量

用户变量和系统变量新增变量NODE_PATH,变量值:D:\Program Files\npm\node_global

用户变量和系统变量Path,新增值:%NODE_PATH%

posted @ 2017-07-03 13:48  SharkLock  阅读(7844)  评论(1编辑  收藏  举报