本文介绍了科尔多瓦3.4.0安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建科尔多瓦我得到follwing错误项目

I am trying to create project in cordova i am getting follwing error

        C:\xampp\htdocs\tagcordova\sample>cordova -d platform add android'
   Platform "android'" not recognized as a core cordova platform. See "platform lis
    t".

   C:\xampp\htdocs\tagcordova\sample>cordova -d platform add android
  cordova library for "android" already exists. No need to download. Continuing.
  Checking if platform "android" passes minimum requirements...
  Creating android project...
  Running command: cmd args=["/c","C:\\Users\\Bhanuprakash\\.cordova\\lib\\android
  \\cordova\\3.4.0\\bin\\create","--cli","C:\\xampp\\htdocs\\tagcordova\\sample\\p
  latforms\\android","com.tag.sample","Sample"]
  Command finished with error code ENOENT: cmd /c,C:\Users\Bhanuprakash\.cordova\l
 ib\android\cordova\3.4.0\bin\create,--cli,C:\xampp\htdocs\tagcordova\sample\plat
 forms\android,com.tag.sample,Sample
 Error: cmd: Command failed with exit code ENOENT
at ChildProcess.whenDone (C:\Users\Bhanuprakash\AppData\Roaming\npm\node_mod
ules\cordova\src\superspawn.js:112:23)
at ChildProcess.EventEmitter.emit (events.js:95:17)
at Process.ChildProcess._handle.onexit (child_process.js:795:12)

我follwed下面的文章
请告诉我怎么解决这个问题。

i follwed following article http://cordova.apache.org/docs/en/3.0.0/guide_cli_index.md.htmlplease tell me how to solve the problem.

推荐答案

如果你是肯定你的路径尝试键入机器人在cmd中,如果它说:XCOPY无法识别

If you are sure of yours paths try to type android in cmd, if it says: 'xcopy' was not recognized.

然后添加到您的路径:

%SystemRoot%\system32; %SystemRoot%; %SystemRoot%\System32\Wbem;

这篇关于科尔多瓦3.4.0安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 23:06