You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/04/28 10:53:08 UTC

[GitHub] [cordova-fetch] QuentinFarizon opened a new issue #95: cordova prepare : failed to fetch plugins with github spec with npm@7

QuentinFarizon opened a new issue #95:
URL: https://github.com/apache/cordova-fetch/issues/95


   # Bug Report
   
   ## Problem
   On my CI builds (clean every run), I run :
   - npm install
   - cordova prepare
   During the cordova prepare step, plugins are already installed, so it should no fetch them
   
   ### What is expected to happen?
   With npm@6.14.11 :
   
   Extract of the logs pertaining to plugin cordova.plugins.diagnostic :
   ```
   Discovered saved plugin "cordova-plugin-file-transfer". Adding it to the project
   Installing "cordova-plugin-file-transfer" for android
   Plugin dependency "cordova-plugin-file@6.0.2" already fetched, using that version.
   Dependent plugin "cordova-plugin-file" already installed on android.
   Installing "cordova-plugin-file-transfer" for ios
   ```
   
   ### What does actually happen?
   With npm@7.6.0 :
   
   Extract of the logs pertaining to plugin cordova.plugins.diagnostic :
   ```
   Discovered saved plugin "cordova-plugin-file-transfer". Adding it to the project
   No scripts found for hook "before_plugin_add".
   Calling plugman.fetch on plugin "git+https://github.com/dpa99c/cordova-plugin-file-transfer.git"
   fetch: Installing git+https://github.com/dpa99c/cordova-plugin-file-transfer.git to /Users/vagrant/git
   Running command: npm install git+https://github.com/dpa99c/cordova-plugin-file-transfer.git --no-save
   Command finished with error code 0: npm install,git+https://github.com/dpa99c/cordova-plugin-file-transfer.git,--no-save
   Failed to restore plugin "cordova-plugin-file-transfer" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin git+https://github.com/dpa99c/cordova-plugin-file-transfer.git via registry.
   Probably this is either a connection problem, or plugin spec is incorrect.
   Check your connection and plugin name/version/URL.
   Could not determine package name from output:
   ```
   
   ## Information
   package.json :
   ```
     "dependencies": {
       "cordova-plugin-file-transfer": "git+https://github.com/dpa99c/cordova-plugin-file-transfer.git",
       ...
     }
   ```
   I have the same issue with github dependencies with syntax : 
   `github:dpa99c/cordova-plugin-file-transfer` 
   
   ### Command or Code
   `ionic cordova prepare --no-build --prod --release`
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   
   
   ### Version information
   Stack used: Xcode 12.1.x, on macOS 10.15.6 (Catalina)
   ionic : 5.4.16
   cordova : 9.0.0
   cordova-common: 3.2.0
   cordova-fetch : 2.0.1
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-fetch] QuentinFarizon commented on issue #95: cordova prepare : failed to fetch plugins with github spec with npm@7

Posted by GitBox <gi...@apache.org>.
QuentinFarizon commented on issue #95:
URL: https://github.com/apache/cordova-fetch/issues/95#issuecomment-828553572


   Sorry this seems to be fixed with latest cordova/cordova-fetch versions


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-fetch] QuentinFarizon closed issue #95: cordova prepare : failed to fetch plugins with github spec with npm@7

Posted by GitBox <gi...@apache.org>.
QuentinFarizon closed issue #95:
URL: https://github.com/apache/cordova-fetch/issues/95


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-fetch] breautek commented on issue #95: cordova prepare : failed to fetch plugins with github spec with npm@7

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #95:
URL: https://github.com/apache/cordova-fetch/issues/95#issuecomment-828572468


   ICYMI:
   
   Reference: https://github.com/apache/cordova-fetch/pull/91
   
   NPM 7 issues are patched in Version [3.0.1](https://github.com/apache/cordova-fetch/blob/master/RELEASENOTES.md#301-feb-02-2021)
   
   `cordova-fetch` is a subdependency of a Cordova tooling. If you have an existing Cordova install you may need to reinstall Cordova to obtain the patch:
   
   ```bash
   npm uninstall cordova -g
   npm install cordova -g
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org