Update config.xml


#1

I am getting a problem while creating ionic app. which i am not able to solve. so please anyone can help me to solve these problem.

Below is the CODE:

D:\Janak\ionic>ionic start myapp
Creating Ionic app in folder D:\Janak\ionic\myapp based on tabs project

Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================] 100% 0.0s

Downloading: https://github.com/driftyco/ionic-starter-tabs/archive/master.zip
[=============================] 100% 0.0s

Update config.xml
Initializing cordova project
Unable to add plugins. Perhaps your version of Cordova is too old. Try updating(npm install -g cordova), removing this project folder, and trying again. (CLI v1.2.4).

Please reply me if you find solution…


#2

Which cordova version are you using??


#3

cordova version 3.5.0-0.2.7


#4

Please update cordova…

npm update -g cordova

Then Try,

ionic start myapp


#5

D:\Janak\ionic>npm update -g cordova

D:\Janak\ionic>ionic start myapp
Creating Ionic app in folder D:\Janak\ionic\myapp based on tabs project

The directory D:\Janak\ionic\myapp already exists.
Would you like to overwrite the directory with this new project?
(yes/no): yes

Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================] 100% 0.0s

Downloading: https://github.com/driftyco/ionic-starter-tabs/archive/master.zip
[=============================] 100% 0.0s

Update config.xml
Initializing cordova project
Unable to add plugins. Perhaps your version of Cordova is too old. Try updating(npm install -g cordova), removing this project folder, and trying again. (CLI v1.2.4)

still not working.


#6

Did you check cordova version after update??


#7

yes i had check after update…
cordova version 3.5.0-0.2.7…


#8

hmmm

Cordova is not updated.After update It should cordova version -3.6.0-0.2.9
Try to update again…


#9

do you have a download link of this latest cordova version…


#10

Sorry, I don’t have any link.
But, i update using CLI - npm update -g cordova. Try again…

https://cordova.apache.org/docs/en/2.9.0/guide_cli_index.md.html


#11

ok…
anyways thanks.


#12

hi shashikant i had updated cordova version 3.6.0-0.2.9.
but still it not working.


#13

It might be a permission issue on the project folder. Try to start the project in a user-writable directory. Somewhere like your “my Documents”. You are using windows, right?


#14

i had try that also…
but still it not working.


#15

Now, what is error??


#16

still same error is coming.


#17

run the command android list target. If you see:

‘xcopy’ is not recognized as an internal or external command,
operable program or batch file.

at the beginning of the command output, it means you will need to fix your Windows Path variable to include xcopy. This location is typically under C:\Windows\System32.

The link: http://adilapapaya.com/docs/cordova/

Please try to add this:

Set Environment variable PATH = %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\