添加Android平台时的离子平台错误

添加Android平台时的离子平台错误

本文介绍了添加Android平台时的离子平台错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 添加android项目... 


为Android平台创建Cordova项目:
路径:platforms \android
软件包:com.ionicframework.carmart632655
名称:CarMart
活动:MainActivity
Android目标:android-23
使用[email protected]
创建的Android项目为android
安装cordova-plugin-console无法安装cordova-plugin-console ':错误:cmd:命令失败,退出代码ENOENT
在ChildProcess.whenDone(C:\Users\UVINDU\AppData\Roaming\\\
pm\\\
ode_modules\cordova\\\
ode_modules\cordova -lib \\\
ode_modules\cordova-common\src\superspawn.js:169:23)
在emitOne(events.js:90:13)
在ChildProcess.emit(events.js :182:7)
在Process.ChildProcess._handle.onexit(internal / child_process.js:198:12)
在onErrorNT(internal / child_process.js:344:16)
nextTickCallbackWith2Args(node.js:474:9)
at process._tickCallback(node.js:388:17)错误:cmd:命令失败,退出代码ENOENT
pre>

我的安装有什么问题

解决方案

在windows中通常这种错误发生时,你没有所有的路径在你的系统环境路径变量。特别是下面给出的路径变量。



请将此行粘贴到系统环境路径变量中:

 %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem; C:\Windows \System32; 

应该这样做...



您也可以查看:





有总安装教程
希望它能帮助你。 。:)


I am trying to add android platform to ionic but when I add it keeps getting this error

Adding android project...
Creating Cordova project for the Android platform:
        Path: platforms\android
        Package: com.ionicframework.carmart632655
        Name: CarMart
        Activity: MainActivity
        Android target: android-23
Android project created with [email protected]
Installing "cordova-plugin-console" for android
Failed to install 'cordova-plugin-console':Error: cmd: Command failed with exit code ENOENT
    at ChildProcess.whenDone (C:\Users\UVINDU\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\cordova-common\src\superspawn.js:169:23)
    at emitOne (events.js:90:13)
    at ChildProcess.emit (events.js:182:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
    at onErrorNT (internal/child_process.js:344:16)
    at nextTickCallbackWith2Args (node.js:474:9)
    at process._tickCallback (node.js:388:17)Error: cmd: Command failed with exit code ENOENT

What is wrong with my installation

解决方案

If you are in windows usually this kind of error happens when you don't have all the paths required in your system environment path variable . Especially the path variables given bellow.

Please paste this line on your system environment path variable:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Windows\System32;

that should do it...

you can also check this out:

https://www.youtube.com/watch?v=Zm2Quz_Gzhk

there is the total installation tutorialhope it will help you.. :)

这篇关于添加Android平台时的离子平台错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 01:27