PolarCape/polarcape-cordova-plugin-document-handler

Unable to install Plugin

Opened this issue · 13 comments

screenshot 172

Hi i am unable to add plugin getting warning as in attached document file.
+-- UNMET PEER DEPENDENCY cordova-plugin-file@^3.0.0
`-- polarcape-cordova-plugin-document-handler@1.0.6

npm WARN polarcape-cordova-plugin-document-handler@1.0.6 requires a peer of cordova-plugin-file@^3.0.0 but none was installed.

Kindly do the needful to help me

Thanks

@PradeepYadav123
Try to install plugin via
cordova plugin add polarcape-cordova-plugin-document-handler

I am able to install the Plugin via cordova plugin add polarcape-cordova-plugin-document-handler
but its not working getting compile time error.
My Cordova version 7.01
Node Version v6.10.3
Android platform version 6.1.2

Request you to help me to solve the issue i m facing.

Thanks Alot

I am not able to install the Plugin via cordova plugin add polarcape-cordova-plugin-document-handler
and npm install polarcape-cordova-plugin-document-handler also
My Cordova version 7.01
Node Version v6.10.3
Android platform version 6.1.2
npn version 5.0.3

screenshot 175

Request you to help me to solve the issue i m facing.

Thanks Alot

@PradeepYadav123
Please try to downgrade your cordova while we fix the plugin.

@PradeepYadav123
Meanwhile we fixed the problem, please check the latest version.

I am still facing same issue.
But am thankful to you for your quick reply.
Can you help howto overcome from this issue.

screenshot 176

Thanks alot

@PradeepYadav123
We tested the plugin with latest cordova, and npm and we did not encountered any problem.
We are suggesting you to try install the plugin on clean cordova project just to be sure that our plugin is compatible with your cordova and npm versions.

Sorry for disturbing you again but i am unable to install plugin

I am putting log file below :--

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Users\Pradeep\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'polarcape-cordova-plugin-document-handler',
1 verbose cli '--save' ]
2 info using npm@5.0.3
3 info using node@v6.10.3
4 verbose npm-session ebfc003a4adf78b6
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData error for polarcape-cordova-plugin-document-handler@file:node_modules\polarcape-cordova-plugin-document-handler Could not install from "node_modules\polarcape-cordova-plugin-document-handler" as it does not contain a package.json file.
8 verbose stack Error: ENOENT: no such file or directory, open 'E:\Capacitate\node_modules\node_modules\polarcape-cordova-plugin-document-handler\package.json'
8 verbose stack at Error (native)
9 verbose cwd E:\Capacitate\node_modules
10 verbose Windows_NT 10.0.14393
11 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\Pradeep\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "polarcape-cordova-plugin-document-handler" "--save"
12 verbose node v6.10.3
13 verbose npm v5.0.3
14 error code ENOLOCAL
15 error Could not install from "node_modules\polarcape-cordova-plugin-document-handler" as it does not contain a package.json file.
16 verbose exit [ 1, true ]

Can u guide what am i lacking here to acheive :---
Assistance would be highly appreciated .

Thanks alot
screenshot 177
screenshot 178

Hi,
I installed fresh Cordova and rempved npm and cache the I tried again to install the plugin but could not succeeded.
Geeting below as message :-

E:\Test>npm install -g polarcape-cordova-plugin-document-handler
npm WARN polarcape-cordova-plugin-document-handler@1.0.9 requires a peer of cordova-plugin-file@^4.0.0 but none was installed.

  • polarcape-cordova-plugin-document-handler@1.0.9
    added 1 package in 2.293s

E:\Test>npm install polarcape-cordova-plugin-document-handler --save-dev
npm WARN com.tcs.capacitate@1.0.0 No repository field.

  • polarcape-cordova-plugin-document-handler@1.0.9
    added 1 package in 0.617s

E:\Test>cordova plugin add polarcape-cordova-plugin-document-handler
Error: Failed to fetch plugin polarcape-cordova-plugin-document-handler via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module

E:\Test>
screenshot 179

Request you to please do the needful.

In the README file there are listed 3 commands for installing the plugin.
You have to choose one of them.
I prefer using this one.
cordova plugin add polarcape-cordova-plugin-document-handler

Maybe the problem is with your cordova-file-plugin because it is dependent to this plugin.
Check which version of cordova-file-plugin you have and make sure that it is at least 4.0.0.

I have cordova-file-plugin version 4.3.3 which is higher than 4.0.0

For your reference i am attaching screenshot.

E:\Test>cordova plugin add polarcape-cordova-plugin-document-handler
Error: Failed to fetch plugin polarcape-cordova-plugin-document-handler 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\polarcape-cordova-plugin-document-handler" 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\Pradeep\AppData\Roaming\npm-cache_logs\2017-06-10T01_53_04_976Z-debug.log
screenshot 180

Hi vaskgjuri,

Thanks now i have installed plugin successfully by your updated guidelines.
But when i run application getting as "unfortunately app has stopped" error.
while i remove the plugin and run app in device it runs successfully.

Request you to please help me to overcome from this issue.

Thanks a lot
Pradeep Yadav