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…
Which cordova version are you using??
cordova version 3.5.0-0.2.7
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.
Did you check cordova version after update??
yes i had check after update…
cordova version 3.5.0-0.2.7…
hmmm
Cordova is not updated.After update It should cordova version -3.6.0-0.2.9 …
Try to update again…
do you have a download link of this latest cordova version…
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
hi shashikant i had updated cordova version 3.6.0-0.2.9.
but still it not working.
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?
i had try that also…
but still it not working.
still same error is coming.
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\