Install a ChildBrowser plugin for Cordova with npm and pluginstall

Install the pluginstall script:

npm install -g pluginstall

Check if it was correctly installed:

npm ls -g | grep pluginstall

Get all Cordova plugins:

git clone git://github.com/alunny/phonegap-plugins.git

Go to the folder just created by git:

cd phonegap-plugins

Go to crossplatform:

git checkout crossplatform

Go to ChildBrowser plugin path:

cd CrossPlatform/ChildBrowser/

Go to your ios app folder and then execute:

pluginstall ios . ~/screencast/phonegap-plugins/CrossPlatform/ChildBrowser/

Add js file to your index.html file:

<script src="childbrowser.js" type="text/javascript" charset="utf-8"></script>

One thought on “Install a ChildBrowser plugin for Cordova with npm and pluginstall

  1. pluginstall ios . ~/screencast/phonegap-plugins/CrossPlatform/ChildBrowser/

    This part fails if there isn’t a plugins.xml located in the folder.

    fs.js:240
    return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
    ^
    Error: ENOENT, no such file or directory ‘/Users/bruce/Documents/testing/plugin.xml’
    at Object. (fs.js:240:18)

Leave a Reply

Your email address will not be published. Required fields are marked *

You must enable javascript to see captcha here!