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/08/14 21:35:37 UTC

[GitHub] [cordova-plugin-network-information] WuglyakBolgoink opened a new issue #135: How to install specific version?

WuglyakBolgoink opened a new issue #135:
URL: https://github.com/apache/cordova-plugin-network-information/issues/135


   Hallo guys!
   
   if I do `cordova plugin add cordova-plugin-network-information@3.0.0` then in `package.json` I see only 
   ![image](https://user-images.githubusercontent.com/2271337/129460517-ea91be15-fdf2-4a2d-8cc4-b7c9f0d49033.png)
   
   and `package-lock.json` doesn't contain any information of plugin version
   
   only if I downgrade plugin to `v2.0.2` it will be added to the dependencies list and in `package-lock` file.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

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-plugin-network-information] breautek commented on issue #135: How to install specific version?

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #135:
URL: https://github.com/apache/cordova-plugin-network-information/issues/135#issuecomment-926094512


   Cordova actually caches plugins into the `plugins/` folder and will reuse that (stupidly imo) if the plugin already exists there, even if it's not the requested version.
   
   `cordova plugin remove <plugin>` and reinstalling a different version will update the plugin.
   
   I wouldn't recommend deleting `package.json` though... that contains information that isn't reconstructed.
   
   If you want to nuke and rebuild from a clean slate you'd delete:
   
   - node_modules/
   - package-lock.json
   - platforms/
   - plugins/
   
   Then
   
   ```
   npm install
   cordova platform add <your-platform>
   ```


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

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-plugin-network-information] breautek closed issue #135: How to install specific version?

Posted by GitBox <gi...@apache.org>.
breautek closed issue #135:
URL: https://github.com/apache/cordova-plugin-network-information/issues/135


   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

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-plugin-network-information] jimbergman edited a comment on issue #135: How to install specific version?

Posted by GitBox <gi...@apache.org>.
jimbergman edited a comment on issue #135:
URL: https://github.com/apache/cordova-plugin-network-information/issues/135#issuecomment-926073300


   Hi, this is something that often happens when changing the version of something in your config.xml, like when you update to a newer version of a plugin.
   
   In your example, you are updating cordova-plugin-network-information from v2.0.2 to v3.0.0
   
   The problem is this change doesn't get put into the `package.json` and `package-lock.json` files, which then doesn't download those changes for the build.
   
   If you try editing `package.json` and `package-lock.json`, node still can use a previously downloaded version.
   
   The solution is what I call a `platform nuke`:
   
   You delete these folders: `node_modules`, `platforms`, `plugins` and the files `package.json` and `package-lock.json`.
   
   Then you recreate these folders and files by doing a `cordova platform add ios` and/or `cordova platform add android`.
   
   This way the versions specified in config.xml are downloaded, and you avoid the build using outdated versions of code previously pulled.
   
   Recommend this issue be closed.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

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-plugin-network-information] jimbergman commented on issue #135: How to install specific version?

Posted by GitBox <gi...@apache.org>.
jimbergman commented on issue #135:
URL: https://github.com/apache/cordova-plugin-network-information/issues/135#issuecomment-926073300


   Hi, this is something that often happens when changing the version of something in your config.xml, like when you update to a newer version of a plugin.
   
   In your example, you are updating cordova-plugin-network-information from v2.0.2 to v3.0.0
   
   The problem is this change doesn't get put into the package.json and package-lock.json files.
   
   The solution is what I call a `platform nuke`:
   
   You delete these folders: `node_modules`, `platforms`, `plugins` and the files `package.json` and `package-lock.json`
   
   Then you recreate these folders and files by doing a `cordova platform add ios` and/or `cordova platform add android`
   
   This way the versions specified in `config.xml` are downloaded, and you avoid the build using outdated versions of code previously pulled.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

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