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
您可以直接从github参考添加它:
cordova plugin add https://github.com/apache/cordova-plugin-media-capture
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!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.