2

Getting below error when running command ionic platform add android

Error: ENOENT, no such file or directory _____\.cordova\lib\android\cordova\3.5.1\VERSION' 
3
  • Can you please run the following and include the answers in your question: 'ionic -v', 'cordova -v'. I want to know what versions of the CLI you're using. Also please let us know your operating system. It looks like Windows, but I could be wrong. Commented Oct 21, 2014 at 17:25
  • We need more information about your issue. It might be a path issue that is bit set properly, a permission problem on your phonegap directory... Commented Dec 15, 2014 at 8:25
  • Please search first stackoverflow.com/questions/26356359/… Commented Feb 8, 2015 at 20:03

1 Answer 1

0

I am providing step by step installation of ionic along with cordova. Have a look it may help you :

  1. First install node to get started using this link
  2. open cmd to install cordova using following command $ sudo npm install -g cordova (Drop sudo from the above command if running on Windows)
  3. install ionic using command $ sudo npm install -g ionic
  4. Create project after selecting directory where project file will be stored, through CMD,by following command ionic start {project name} {template type} e.g ionic start todo blank
  5. Once your project is created go to your newly created project: cd .\new project. for e.g. D:\Projects>cd.\todo
  6. Now you have to add both android and ios to your project in order to test the build so you need to follow below commands

    ionic cordova platform add android

    ionic cordova platform add ios

I think in your case you are missing step 5.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.