Image Resizer


ionic plugin add

ionic cordova plugin add

cordova plugin add --save
:heavy_multiplication_x: 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 … (exit code 1):

    Error: Failed to fetch plugin 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/ks/tmzgfbh52kzd2d0nnyvfwn5c0000gn/T/npm-37469-0879d01b/git-cache-768ab0f9/2a451e6723bbdfd52c940e9fe233f79472154ee3
    npm ERR! Darwin 16.6.0
    npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "" "--save"
    npm ERR! node v6.11.0
    npm ERR! npm  v3.10.10
    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! Please include the following file with any support request:
    npm ERR!

but somewhy this one installed, and works with “@ionic-native/image-resizer”: “^3.12.1” :
ionic cordova plugin add


If you had searched the forums for “EISDIR”, you would have found several threads telling you it’s an incompatibility with Cordova 7, so you can either wait until upstream fixes it or downgrade Cordova.