"cordova plugin add" giving Not Found: 404 errors

1.6k views Asked by At

I am trying to add the media-capture plugin via

cordova plugin add cordova-plugin-media-capture

as per the instructions here: http://ngcordova.com/docs/plugins/capture/

but I am getting the following error:

npm http GET http://registry.cordova.io/cordova-plugin-media-capture
npm http 404 http://registry.cordova.io/cordova-plugin-media-capture
Error: 404 Not Found: cordova-plugin-media-capture

EDIT

I have now updated npm and cordova and I am now getting:

TypeError: Request path contains unescaped characters
2

There are 2 answers

4
aorfevre On

You can add it directly from github reference:

cordova plugin add https://github.com/apache/cordova-plugin-media-capture
0
AO_ On

The plugins have moved from cordova.io to npmjs.org.

Try using this:

http://registry.npmjs.org/cordova-plugin-media-capture

If this doesn't work for you, then you need to update your cordova binaries.

npm rm cordova
npm install -g cordova // get a new shiny one!