I want to add imagePicker
plugin.
ionic cordova plugin add https://github.com/Telerik-Verified-Plugins/ImagePicker --save
But i got an error.
✖ Running command - failed!
[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova plugin add https://github.com/Telerik-Verified-Plugins/ImagePicker --sav... (exit code 1):
Error: Failed to fetch plugin https://github.com/Telerik-Verified-Plugins/ImagePicker via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 235 Error output:
npm ERR! addLocal Could not install /var/folders/d5/lftkh5rs3zn93sq_3vfk8c2w0000gp/T/npm-4427-a10ff8ca/git-cache-201971fb/1d453300ae3dacb007a404fd59536afcb67ab286
npm ERR! code EISDIR
npm ERR! errno -21
npm ERR! syscall read
npm ERR! eisdir EISDIR: illegal operation on a directory, read
npm ERR! eisdir This is most likely not a problem with npm itself
npm ERR! eisdir and is related to npm not being able to find a package.json in
npm ERR! eisdir a package you are trying to install.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ThunderBirdsX3/.npm/_logs/2017-05-15T10_33_46_956Z-debug.log
It can use ionic cordova plugin add cordova-plugin-image-picker
.
But when I use function hasReadPermission()
. I got an error.
[17:15:47] console.warn: Native: tried calling ImagePicker.hasReadPermission, but the ImagePicker plugin is not
installed.
[17:15:47] console.warn: Install the ImagePicker plugin: 'ionic plugin add
https://github.com/Telerik-Verified-Plugins/ImagePicker'
[17:15:47] console.error: error : plugin_not_installed