-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install Plugin #14
Comments
@PradeepYadav123 |
I am able to install the Plugin via cordova plugin add polarcape-cordova-plugin-document-handler 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 Request you to help me to solve the issue i m facing. Thanks Alot |
@PradeepYadav123 |
@PradeepYadav123 |
@PradeepYadav123 |
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 Can u guide what am i lacking here to acheive :--- |
Hi, E:\Test>npm install -g polarcape-cordova-plugin-document-handler
E:\Test>npm install polarcape-cordova-plugin-document-handler --save-dev
E:\Test>cordova plugin add polarcape-cordova-plugin-document-handler Request you to please do the needful. |
In the README file there are listed 3 commands for installing the plugin. Maybe the problem is with your cordova-file-plugin because it is dependent to this plugin. |
Hi,
Can you try and remove node_modules directory or/and recreate the cordova project from scratch? Because I tried to do a clean install on a new project and everything works fine:
C:\workspace\bitbucket>cordova create test-plugin com.test.plugin
Creating a new cordova project.
C:\workspace\bitbucket>cd test-plugin
C:\workspace\bitbucket\test-plugin>cordova platform add android
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: com.test.plugin
Name: HelloCordova
Activity: MainActivity
Android target: android-25
Subproject Path: CordovaLib
Android project created with cordova-android@6.1.2
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-whitelist@1" via npm
Installing "cordova-plugin-whitelist" for android
This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
C:\workspace\bitbucket\test-plugin>cordova plugin add polarcape-cordova-plugin-document-handler
Fetching plugin "polarcape-cordova-plugin-document-handler" via npm
Installing "polarcape-cordova-plugin-document-handler" for android
Fetching plugin "cordova-plugin-file" via npm
Installing "cordova-plugin-file" for android
Fetching plugin "cordova-plugin-compat" via npm
Installing "cordova-plugin-compat" for android
The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.
If this is a new application no changes are required.
If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
"<preference name="AndroidPersistentFileLocation" value="Compatibility" />"
to config.xml in order for the application to find previously stored files.
Subproject Path: CordovaLib
C:\workspace\bitbucket\test-plugin>
Looks quite good to me. Try the same commands I have above and see if it works. If it dies, then it is something wrong with your configuration. The plugin looks just fine.
BR
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
From: PradeepYadav123<mailto:notifications@github.com>
Sent: сабота, 10 јуни 2017 03:57
To: PolarCape/polarcape-cordova-plugin-document-handler<mailto:polarcape-cordova-plugin-document-handler@noreply.github.com>
Cc: Subscribed<mailto:subscribed@noreply.github.com>
Subject: Re: [PolarCape/polarcape-cordova-plugin-document-handler] Unable to install Plugin (#14)
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]<https://user-images.githubusercontent.com/16350087/26999046-4255a2b8-4dae-11e7-97ab-1558e6b6bc91.png>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#14 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AGGmXM568SpLL4Gkgi41mUHBjCoRTJVSks5sCfgYgaJpZM4Nmu_4>.
|
Hi vaskgjuri, Thanks now i have installed plugin successfully by your updated guidelines. Request you to please help me to overcome from this issue. Thanks a lot |
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
The text was updated successfully, but these errors were encountered: