breautek commented on issue #543:
URL: https://github.com/apache/cordova-cli/issues/543#issuecomment-733808235


   Problem appears to be coming from a sub-dependency.
   
   My first guess is that a sub-dependency didn't get updated properly on your 
upgrade. This can happen sometimes when doing upgrades because of how NPM and 
package locks work...
   
   Can you try the following:
   
   1. Delete `node_modules` folder
   2. Delete `platforms` folder - **Read the note below**
   3. Delete `plugins` folder
   4. Delete `package-lock.json` file
   
   If you use a global cordova installation, then do: `npm uninstall -g cordova 
&& npm install -g cordova`
   
   5. run `npm install`
   6. run `cordova platform add android`
   
   The above will forcefully remove all your dependencies, platforms and 
plugins. **If you made any custom modifications to your platform(s), it is 
important you backup those changes.**. Then, it will reinstall your 
dependencies. The platform add command will restore your cordova plugins. The 
result is everything is installed from scratch.
   
   Let me know if this helps.


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