如何正确安装cordova?

时间:2020-09-17 13:32:47

标签: powershell cordova

我尝试安装cordova,但是每次尝试都会出现错误

错误:命令失败:powershell(Get-CimInstance -ClassName Win32_OperatingSystem).caption 无法将“ powershell”识别为内部或外部命令, 可操作的程序或批处理文件。

at makeError (C:\Users\DELL\AppData\Roaming\npm\node_modules\cordova\node_modules\windows-release\node_modules\execa\index.js:174:9)
at Function.module.exports.sync (C:\Users\DELL\AppData\Roaming\npm\node_modules\cordova\node_modules\windows-release\node_modules\execa\index.js:338:15)
at windowsRelease (C:\Users\DELL\AppData\Roaming\npm\node_modules\cordova\node_modules\windows-release\index.js:39:19)
at osName (C:\Users\DELL\AppData\Roaming\npm\node_modules\cordova\node_modules\os-name\index.js:39:18)
at new Insight (C:\Users\DELL\AppData\Roaming\npm\node_modules\cordova\node_modules\insight\lib\index.js:37:13)
at new RelentlessInsight (C:\Users\DELL\AppData\Roaming\npm\node_modules\cordova\src\telemetry.js:31:1)
at Object.<anonymous> (C:\Users\DELL\AppData\Roaming\npm\node_modules\cordova\src\telemetry.js:39:15)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32) {

代码:1, 标准输出:“, stderr:“'powershell'不被识别为内部或外部命令,\ r \ n“ + “可运行的程序或批处理文件。\ r \ n”, 失败:是的, 信号:空, cmd:'powershell(Get-CimInstance -ClassName Win32_OperatingSystem).caption', 超时:假 }

我应该怎么做?请给我建议。

谢谢

0 个答案:

没有答案