简体   繁体   English

Ionic无法识别为内部或外部命令

[英]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 ionicnpm 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 versionnpm 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. 如果没有,只需在文件资源管理器中搜索cordovaionic Hope this would help you, regards! 希望这对您有帮助,问候!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 “http-server”未被识别为内部或外部命令 - 'http-server' is not recognized as an internal or external command MsBuild:无法将“ ng”识别为内部或外部命令 - MsBuild: 'ng' is not recognized as an internal or external command Angular新手:“ tsc不被识别为内部或外部命令” - Angular newbie: 'tsc is not recognized as an internal or external command' “量角器”不被识别为内部或外部命令,可操作程序或批处理文件 - 'protractor' is not recognized as an internal or external command, operable program or batch file 无法将“ yeoman”识别为内部或外部命令,可操作程序或批处理文件 - 'yeoman' is not recognized as an internal or external command, operable program or batch file 无法将“ ng”识别为内部或外部命令,可操作程序或批处理文件。 (平均堆栈) - 'ng' is not recognized as an internal or external command, operable program or batch file. (Mean Stack) 为什么在Ionic 2中不加载事件? - Why isn't on event loading in Ionic 2? 选择选项不会在离子中添加对象 - select option isn't adding object in ionic 使用 react2angular,react 无法识别,没有错误 - Using react2angular, react isn't recognized, no erros 无法使用TypeScript修饰AngularJS的ExceptionHandler,因为函数不被识别 - Cannot decorate AngularJS' ExceptionHandler using TypeScript, as a function isn't recognized as such
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM