cordova 9 Latest version shows errors

0

I'm using the latest Node.js and npm and installing cordova version 9.0.0 but when I write "cordova platform ls" command it shows me these errors could someone help me:

C:\Users\Maryem>cordova platform ls
C:\Users\Maryem\AppData\Roaming\npm\node_modules\cordova\node_modules\execa\inde
x.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.


 at makeError (C:\Users\Maryem\AppData\Roaming\npm\node_modules\cordova\node_
modules\execa\index.js:174:9)
 at Function.module.exports.sync (C:\Users\Maryem\AppData\Roaming\npm\node_mo
dules\cordova\node_modules\execa\index.js:338:15)
 at windowsRelease (C:\Users\Maryem\AppData\Roaming\npm\node_modules\cordova\
node_modules\windows-release\index.js:34:24)
 at osName (C:\Users\Maryem\AppData\Roaming\npm\node_modules\cordova\node_mod
ules\os-name\index.js:39:18)
 at new Insight (C:\Users\Maryem\AppData\Roaming\npm\node_modules\cordova\nod
e_modules\insight\lib\index.js:37:13)
 at Object.<anonymous> (C:\Users\Maryem\AppData\Roaming\npm\node_modules\cord
ova\src\telemetry.js:26:15)
 at Module._compile (internal/modules/cjs/loader.js:701:30)
 at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
 at Module.load (internal/modules/cjs/loader.js:600:32)
 at tryModuleLoad (internal/modules/cjs/loader.js:539:12)

C:\Users\Maryem>```

Maryem Zo

Posted 2019-05-10T04:25:09.930

Reputation: 1

No answers