'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 @ 2019-06-28 13:16  晒晒  阅读(879)  评论(0)    收藏  举报