[我在 Windows 10 上——Linux Mint Terra 工作正常:)]
当我尝试创建一个 cordova 项目时,出现以下错误:
C:\Users\user\EvothingsStudio\MyApps>cordova create DemoProject com.evothings.demoapp DemoApp
[同样的错误cordova create project
]
C:\Users\user\AppData\Roaming\npm\node_modules\cordova\node_modules\execa\index.js:347
throw err;
^
Error: Command failed: wmic os get Caption
Der Befehl "wmic" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
at makeError (C:\Users\user\AppData\Roaming\npm\node_modules\cordova\node_modules\execa\index.js:174:9)
at Function.module.exports.sync (C:\Users\user\AppData\Roaming\npm\node_modules\cordova\node_modules\execa\index.js:338:15)
at windowsRelease (C:\Users\user\AppData\Roaming\npm\node_modules\cordova\node_modules\windows-release\index.js:34:24)
at osName (C:\Users\user\AppData\Roaming\npm\node_modules\cordova\node_modules\os-name\index.js:39:18)
at new Insight (C:\Users\user\AppData\Roaming\npm\node_modules\cordova\node_modules\insight\lib\index.js:37:13)
at Object.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\cordova\src\telemetry.js:26:15)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
希望任何人都知道如何解决这个问题(在 Windows 上使用 Evothings Studio 2.2.1 创建应用程序工作正常,是的,我使用具有管理员权限的命令 promopt :))
谢谢!