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/01/14 03:24:18 UTC

[GitHub] [cordova-cli] jayenashar removed a comment on issue #527: ionic cordova prepare

jayenashar removed a comment on issue #527:
URL: https://github.com/apache/cordova-cli/issues/527#issuecomment-759900228


   how do i recover if something is messed up in my environment?  this project was working when i last used it (maybe one year ago), but didn't work today.  i tried upgrading all cordova packages, and i've tried what @breautek suggested and now have:
   
   ```
   jayen@eeyore:~/cordova$ npx cordova platform add android --save
   Using cordova-fetch for cordova-android@9.0.0
   Platform android already added.
   jayen@eeyore:~/cordova$ npx cordova prepareUnable to load Platform API from /home/jayen/cordova/platforms/android/cordova/Api.js:
   Cannot find module '/home/jayen/cordova/platforms/android/cordova/Api.js'
   Require stack:
   - /home/jayen/cordova/node_modules/cordova-lib/src/cordova/util.js
   - /home/jayen/cordova/node_modules/cordova-lib/src/platforms/index.js
   - /home/jayen/cordova/node_modules/cordova-lib/src/platforms/platforms.js
   - /home/jayen/cordova/node_modules/cordova-lib/src/plugman/install.js
   - /home/jayen/cordova/node_modules/cordova-lib/src/plugman/plugman.js
   - /home/jayen/cordova/node_modules/cordova-lib/cordova-lib.js
   - /home/jayen/cordova/node_modules/cordova/src/help.js
   - /home/jayen/cordova/node_modules/cordova/src/cli.js
   - /home/jayen/cordova/node_modules/cordova/bin/cordova
   1 jayen@eeyore:~/cordova$ npx cordova --version
   10.0.0
   ```


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