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

   > This is happening again with Ventura ... we need a future proof fix
   
   Probably just get rid of `insight` package. We use it to display the 
"consumer" name of the Mac version instead of the Darwin version.
   
   But unfortunately the underlying package can't see in the future nor do they 
gracefully handle unknown Darwin versions. Instead we can just use the NodeJS 
APIs (`OS.platform()` / `OS.release()` / `OS.version()`). Platform will provide 
`darwin` on macs, and either `release()` or `version()` will provide the 
version. `OS.version()` might be pretty much a direct replacement since it 
returns `"Windows 10 Pro"` rather than the actual OS version. (`release()` 
appears to return the actual version, e.g: `10.0.19045`


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