离子框架 - “离子"不被识别为内部或外部命令 [英] Ionic framework - 'ionic' is not recognized as an internal or external command

查看:23
本文介绍了离子框架 - “离子"不被识别为内部或外部命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从早上开始就尝试安装 ionic 并在其上创建一个示例项目.但是,从那时起就面临着一系列问题.试着一一解决.Atlast 重新启动了我的机器并打开命令提示符来构建示例项目并尝试

I was trying to install ionic and create a sample project on it since morning. But, was facing a series of issues since then. Tried solving them one by one. Atlast restarted my machine and opened command prompt to build the sample project and tried

path of the sample project> ionic build android

但是,我一直面临错误,指出离子"未被识别为内部或外部命令.

But, i kept on facing the error that states 'ionic' is not recognized as an internal or external command.

我尝试清除缓存并在我的机器中重新安装 ionic.尽管如此,我仍然面临同样的问题,即 ionic 未被识别为内部或外部命令.

I tried clearing the cache and reinstalling ionic in my machine. Still, I face the same issue of ionic is not recognized as an internal or external command.

有人可以帮我解决这个问题吗?

Can somebody help me out on this issue?

谢谢马尼坎丹J

推荐答案

不知何故,我的 npm 路径不在 PATH 环境变量中

Somehow , my npm path was not there in PATH environmental Variable

所以在将 C:UsersXXXXXAppDataRoaming pm 添加到我的 PATH 变量后,我的问题解决了 :-)

So after adding C:UsersXXXXXAppDataRoaming pm to my PATH variable my problem solved :-)

这篇关于离子框架 - “离子"不被识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆