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: [email protected]

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