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 2022/01/17 19:07:20 UTC

[GitHub] [cordova-android] simonjmartin opened a new issue #1392: cordova prepare android @10.x.x fails, on Windows, with \cordova\version is not recognized as an internal or external command

simonjmartin opened a new issue #1392:
URL: https://github.com/apache/cordova-android/issues/1392


   # Bug Report
   
   ## Problem
   
   After upgrading to v10 when I run cordova prepare android the process fails with 
   "...\platforms\android\cordova\version"' is not recognized as an internal or external command"
   
   
   ### What is expected to happen?
   
   The app should be prepared for android without error
   
   
   ### What does actually happen?
   
   the process fails with 
   "...\platforms\android\cordova\version"' is not recognized as an internal or external command"
   
   
   ## Information
   
   Issuing the command in my terminal produces the same error, but as it looks like it's trying to invoke the file if I prepend the line with 'node' then the version is correctly returned and there are no errors.
   If I downgrade from v10.x to v9 and compare the folder contents, version.bat has been removed, which was part of https://github.com/apache/cordova-ios/pull/1180 also https://github.com/apache/cordova-ios/pull/1180#issuecomment-962008827
   As a workaround I have copied version.bat from the v9 folder and paste it into the folder after reverting to v10.1.1 - but this shouldn't be necessary. 
   This is only an issue on Windows, macs seem to respect the shebang #!/usr/bin/env node statement at the top of the plain version file
   
   
   
   ### Command or Code
   
   cordova prepare android
   
   
   ### Environment, Platform, Device
   
   Windows 10
   
   
   
   ### Version information
   
   Android Cordova 10.1.1
   Windows 10
   npm 6.14.13
   node 14.17.1
   Powershell 7.2.0 or regular Windows cmd
   
   
   
   ## Checklist
   
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
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-android] breautek commented on issue #1392: cordova prepare android @10.x.x fails, on Windows, with \cordova\version is not recognized as an internal or external command

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1392:
URL: https://github.com/apache/cordova-android/issues/1392#issuecomment-1030487347


   Is there any other information about your environment you can share?
   
   I just tested this in a windows 10 environment on a simple hello world app, which doesn't reproduce the 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.

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