那如何在Windows中打开这个查看终端呢
时间: 2024-04-01 17:31:26 浏览: 115
在 Windows 中,您可以通过以下步骤打开命令提示符或 PowerShell 终端来查看环境变量:
1. 打开“开始”菜单,搜索“cmd”或“PowerShell”,然后打开命令提示符或 PowerShell 终端。
2. 在终端中输入以下命令:
```
echo %PATH%
```
这会显示当前用户的环境变量的所有路径。如果您想查看系统环境变量的路径,请在命令前面添加“`echo %SystemRoot%`”(不包括引号)。
如果您已经添加了 Yarn 的路径,则可以在输出的结果中看到包含 Yarn 的路径。例如:
```
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32\compiler;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Microsoft VS Code\bin;C:\Users\username\AppData\Local\Yarn\bin
```
其中,`C:\Users\username\AppData\Local\Yarn\bin` 就是 Yarn 的路径,路径中的“username”应该是您的用户名。
如果您在输出的结果中没有看到 Yarn 的路径,那么说明 Yarn 的路径没有添加到环境变量中。您可以手动添加 Yarn 的路径,具体操作可以参考 Yarn 官方文档(https://classic.yarnpkg.com/en/docs/install/#windows-stable)。
阅读全文
相关推荐


















