离子框架 - '离子'不被视为内部或外部命令

问题描述:

我试图安装离子并从早上开始创建一个示例项目。但是,从那时起,面临着一系列问题。试图一个一个地解决它们。 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.

我尝试清除缓存并在我的机器中重新安装离子。尽管如此,我仍面临同样的离子问题,不被认为是内部或外部命令。

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?

谢谢
Manikandan J

Thanks Manikandan J

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

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

所以在添加 C:\ Users \XXXXX \ AppData \ Rooaming \ nnpm 之后到我的 PATH 变量我的问题解决了: - )

So after adding C:\Users\XXXXX\AppData\Roaming\npm to my PATH variable my problem solved :-)