Reputation: 14283
I'm using ionic to create an app, and I need to use cordova as well... now, I know that if you install ionic, and then start an ionic project, everything should be cloned into the folder that you define.
But what if I have already a project (pulled from a repository) in which there are no node_modules, cordova and bower? I can run npm install
to install all the node modules, and same for bower install
, but what about cordova?
All I was able to find was this: cordova create app
(where app is my current NOT empty project) and the result was:
Error: Path already exists and is not empty:
On the cordova website i wasn't able to find anything regarding initialize cordova into a non empty project.
is this even possible? any suggestions?
thanks a lot
Upvotes: 0
Views: 515
Reputation: 1118
ionic start ChatApp blank --type=ionic1
will work for ionic1 and also for some people
ionic and cordova not installing on windows
Upvotes: 0
Reputation: 1923
The best way I can think of is create a new blank Ionic project.
Use the command $ ionic start myApp blank
for that.
This will setup everything ionic/cordova related, so the next step would be to manually copy the files from the pulled repo and put them in the correct location in the newly created project.
If it's working, you can continue installed some node/bower dependencies to really start developping.
Note: I'm not sure if this is the best/fastest way, but it should do the trick (if you have some ionic/web experience already)
Upvotes: 3