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


   > Thanks google-- I'm here.
   > So I have been dealing with for half a day. Upgraded Cordova from 8 to 
9.0. I have to manually add I think I'm up to 20 or more modules now.
   > Both adding and removing needed different modules and now building android 
is complaining.
   > 
   > Failed to instantiate ProjectBuilder builder: Error: Cannot find module 
'dot-prop'
   > Cannot find module 'shebang-regex'
   > Cannot find module 'minimatch'
   > Cannot find module 'abbrev'
   
   You shouldn't need to manually add any dependencies, but it is possible that 
you're using an out-dated/unsupported version of `cordova-android`
   
   The latest CLI is version 10, and the latest cordova-android version is 
9.1.0. I'd try first upgrading to the latest CLI and then re-adding the 
cordova-android platform.
   
   If `cordova platform remove android` doesn't work for whatever reason, you 
can do the following:
   
   ```
   rm -r plugins
   rm -r platforms
   rm -r node_modules
   rm package-lock.json
   npm install
   cordova platform add android@latest
   ```
   
   It's also recommended to use the latest available release of whatever major 
of Node you're using. Refer to the table below:
   | NodeJS Major | Latest Version |
   |-------------------------|-------------------------|
   | 10.x | 10.24.1 |
   | 12.x | 12.22.1 |
   | 14.x | 14.16.1 |
   
   Odd major versions of Node (e.g: 11.x, 13.x, 15.x) is not supported. They 
may or may not work.
   
   There doesn't appear to be an actual issue here related to `cordova-cli` 
other than aforementioned issue with detecting what is a valid cordova project 
in general to provide better error feedback. There is a ticket for this 
discussion https://github.com/apache/cordova/issues/155 therefore I'll be 
closing this issue.


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