Unable to add cordova plugins to my project. Althoudh I used following process run following command to install cordova globally
npm install -g cordova
Then create new cordova project using
cordova start project_name
Go to directory and Install plugin using
cordova plugin add org.apache.cordova.file
Copy Installed plugin folder & paste into plugins folder in Visual Studio solution. Update config file
<vs:plugin name="org.apache.cordova.file" version="1.3.1" />
Build the Project.
If have a query please let me know.
The reason this doesn't work is because the CPR plugin registry for older versions of Cordova (less than 5.0) has been removed. You need to upgrade to a newer version of Cordova that uses NPM to get plugins.
Please see this for more information:
https://cordova.apache.org/announcements/2015/04/21/plugins-release-and-move-to-npm.html
Also note that the plugin names have changed. org.apache.cordova.file is now cordova-plugin-file.