使用不用方式启动的 Powershell 得到的环境是不同的。通过以下命令查看。可将系统路径(Machine)和用户路径合并后设置未当前的环境变量

>> $env:path

解决

$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")

相关文章:

  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2021-10-19
  • 2021-07-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-11
  • 2021-09-26
  • 2022-12-23
  • 2021-05-31
  • 2022-12-23
  • 2021-11-22
相关资源
相似解决方案