cordova-cli icon indicating copy to clipboard operation
cordova-cli copied to clipboard

cordova commands on bash in windows fails.

Open jhaisley opened this issue 6 years ago • 1 comments

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

jhaisley avatar Jun 25 '19 15:06 jhaisley

Upstream PR to resolve this: https://github.com/sindresorhus/windows-release/pull/13

jhaisley avatar Jun 25 '19 16:06 jhaisley