这是因为powershell没有加入到环境变量中
将下面4行内容加入到系统的PATH路径中即可
%SystemRoot%\System32
%SystemRoot%
%SystemRoot%\System32\Wben
%SystemRoot%\System32\WindowsPowerShell\v1.0
步骤:
1、打开环境变量编辑界面,进入PATH中
2、 依次新建,添加红框里面的4个内容(内容见上面,可以复制)
这是因为powershell没有加入到环境变量中
将下面4行内容加入到系统的PATH路径中即可
%SystemRoot%\System32
%SystemRoot%
%SystemRoot%\System32\Wben
%SystemRoot%\System32\WindowsPowerShell\v1.0
步骤:
1、打开环境变量编辑界面,进入PATH中
2、 依次新建,添加红框里面的4个内容(内容见上面,可以复制)