I use cordova for app deveolopment and have some projects which were build with Cordova 3.5. The exact version is:
$ cordova --version
3.5.0-0.2.7
The cordova installation is global on my system, but now I think, that this was a bad idea. I really should have local, project specific installs, so older projects can be maintained with the original version and new projects can be started with the newest one.
The plan to fix this is as follows:
First remove the globally installed cordova:
$ sudo npm uninstall cordova -g
Then add specific cordova version to old projects
$ cd /Projects/old_project
$ sudo npm install cordova@3.5.0-0.2.7
$ cd /Projects/some_other_old_project
$ sudo npm install cordova@3.1
Finally add newest cordova for new project
$ cd new_project
$ sudo npm install cordova
The newest project will use the ionic framework, which was also installed using the -g switch. I'd like to replace this installation with a local, project specific install too.
Is this the correct way to do this? Or do I miss something? (and ruin everything?)