ath0mas opened a new issue #867:
URL: https://github.com/apache/cordova-lib/issues/867


   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   _Basic_ `cordova plugin add <plugin-name>` of a plugin published on NPM with 
_prerelease_ version should install without error.
   
   
   ### What does actually happen?
   Fail to add plugin because of `Invalid Version: null`.
   
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   It works fine forcing `@<exact-version>` spec, or for same kind of plugin 
but with a _release_ version.
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   ```
   $ cordova plugin add cordova-plugin-ns0m-media-capture
   Invalid Version: null
   $ cordova plugin add cordova-plugin-ns0m-file-transfer
   Invalid Version: null
   
   $ cordova plugin add cordova-plugin-ns0m-disk-space
   Adding cordova-plugin-ns0m-disk-space to package.json
   ```
   while `npm install`s are running fine, fetching _3.0.4-3_, _2.0.0-2_, and 
_1.1.0_ respectively,
   and same for
   ```
   $ cordova plugin add [email protected]
   Adding cordova-plugin-ns0m-media-capture to package.json
   $ cordova plugin add [email protected]
   Adding cordova-plugin-ns0m-file-transfer to package.json
   
   $ cordova plugin add [email protected]
   Adding cordova-plugin-ns0m-disk-space to package.json
   ```
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   Windows 10, Node 14 & 15, NPM 6 & 7
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   ```
   Cordova Packages:
   
       cli: 10.0.0
           common: 4.0.2
           create: 3.0.0
           lib: 10.0.0
               common: 4.0.2
               fetch: 3.0.1
               serve: 4.0.0
   ```
   
   
   ## 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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to