cordova-cli
cordova-cli copied to clipboard
cordova commands on bash in windows fails.
Bug Report
Problem
cordova create fails when running under bash on windows.
What is expected to happen?
cordova create creates project
What does actually happen?
Throws error
Information
It appears that this is fixable simply by
Command or Code
$ cordova create MobileApp com.acme.app "MobileApp" C:\Users\dummy\AppData\Local\node\node_modules\cordova\node_modules\execa\index.js:347 throw err; ^ Error: Command failed: wmic os get Caption 'wmic' is not recognized as an internal or external command, operable program or batch file.
Environment, Platform, Device
bash on Windows
Version information
Cordova 9.0.0 ([email protected])
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
Upstream PR to resolve this: https://github.com/sindresorhus/windows-release/pull/13