[英]Ionic isn't recognized as an internal or external command
I installed Ionic and cordova with npm install -g ionic
and npm install -g cordova
and when i try to launch a simple command such as 我使用
npm install -g ionic
和npm install -g cordova
安装了Ionic和cordova,当我尝试启动一个简单的命令时,例如
ionic start appname blank
I get the error : Ionic isn't recognized as an internal or external command. 我收到错误消息:无法将Ionic识别为内部或外部命令。
I checked the version installed of both cordova and ionic with npm info ionic version
and npm info cordova version
and both are correctly installed 我通过
npm info ionic version
和npm info cordova version
检查了cordova和ionic的安装npm info cordova version
并且两者均已正确安装
cordova : v 6.0.0
ionic : v 1.7.14
I tried to npm clean cache and reinstall both and it does not work either. 我试图npm清理缓存并重新安装两者,但也不起作用。
My environment path are the following: 我的环境路径如下:
User variable : PATH C:\Users\arnaud\AppData\Roaming\npm
System variable : path : C:\Program Files\nodejs\ is present
Thank you for your help 谢谢您的帮助
Have you check your C:\\Users\\arnaud\\AppData\\Roaming\\npm\\bin
directory? 您是否检查过
C:\\Users\\arnaud\\AppData\\Roaming\\npm\\bin
目录? Maybe ionic and cordova were located in there. 也许离子和科尔多瓦都位于那里。 If so, add above directory path to your environment variable;
如果是这样,请将以上目录路径添加到您的环境变量中; If not, just search
cordova
and ionic
in file explorer. 如果没有,只需在文件资源管理器中搜索
cordova
和ionic
。 Hope this would help you, regards! 希望这对您有帮助,问候!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.