Error: Command failed: wmic os get Caption ionic

Error: Command failed: wmic os get Caption ionic
Error: Command failed: wmic os get Caption


Check the cmd whether programs are available:

taskkill
cordova
npm
ionic


Most errors occur after the Windows update.
When building a project, the ionic can not find the files, for example taskkill.exe


So check the environment variables. I recommend the program Rapid Environment Editor
https://www.rapidee.com/en/download

PATH
C:\Windows\System32
C:\Windows\System32\wbem
%JAVA_HOME%\bin
%JAVA_HOME%\lib
%GRADLE_HOME%\bin
C:\Program Files\nodejs\

GRADLE_HOME Variable Value C:\Gradle\gradle-4.0.1
Then choose PATH variable from system variable list
append the gradle path to variable value like this %GRADLE_HOME%\bin

Комментариев нет:

Отправить комментарий