Cannot install Ionic Native's File plugin


#1

I could not install the File plugin of Ionic Native.
My internet connection is fine. I’ve been trying for the last 45 mins still the same error (see below).
Tried installing with --nofetch option - still the same error.
Also tried installing directly with the command: cordova plugin add cordova-plugin-file
Still got the same error.
Is it possible that Cordova is down?
Please help!

Below is the error from CLI:

L:\MyTrials\test\ionic\locations-app>ionic cordova plugin add cordova-plugin-file

cordova plugin add cordova-plugin-file --save
x Running command - failed!
[ERROR] An error occurred while running cordova plugin add cordova-plugin-file

    --save (exit code 1):

    Error: Failed to fetch plugin file:node_modules\cordova-plugin-file via registry.
    Probably this is either a connection problem, or plugin spec is incorrect.
    Check your connection and plugin name/version/URL.
    Error: cmd: Command failed with exit code 1 Error output:
    npm ERR! code ENOLOCAL
    npm ERR! Could not install from "node_modules\cordova-plugin-file" as it does not contain a package.json file.
    npm ERR! A complete log of this run can be found in:
    npm ERR!
    C:\Users\xxxx\AppData\Roaming\npm-cache\_logs\2017-09-21T03_47_24_601Z-debug.log

Thanks!


#2

Update;
Looks like only File plugin of Ionic Native is having issues.
I tried installing the Date-picker plugin
ionic cordova plugin add cordova-plugin-datepicker
and had no issues…

If the File plugin installation has issues how can I use it?
Is this a known problem?
Can any one please help?

Thanks!


#3

Update:
I was able to solve this issue - for more info please refer here