重新配置电脑中的环境变量
由于本人sb 把环境变量全部覆盖了 把系统的path的环境变量全部覆盖了
一些感想 1.不要依赖电脑 2.常备份 3.多用云服务 4. 代码尤其不要依赖环境和自己的电脑 解耦和健壮
This image shows a portion of the Windows System Environment Variable “Path” list. Here are some observations:
✅ Notable Entries
- Custom Development Paths:
D:\1_development\XFTP\
D:\1_development\XSHELL\
D:\1_development\SQL\Redis\
D:\1_development\01Enviroment\Go\bin
D:\1_development\01Enviroment\R-4.4.1\bin
- Framework/Tool Variables (environment variables):
%NODE_HOME%
,%ROCKETMQ_HOME%
,%ERLANG_HOME%
,%NVM_HOME%
,%VUE_HOME%
,%nginx_home%
,%nacos_home%
%ANACONDA_HOME%
,%ANACONDA_LIBRARY%
%DJANGO%
(highlighted)
- NVIDIA & .NET:
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
C:\Program Files\NVIDIA Corporation\NVIDIA App\NvDLISR
C:\Program Files\dotnet\
- Node-related entries:
%NODE_HOME%\node_modules
%NODE_HOME%\node_global
⚠️ Recommendations
- Environment Variables Defined?
- Ensure all the variables like
%DJANGO%
,%NODE_HOME%
, etc., are properly defined in the system. Undefined variables in the PATH won’t resolve correctly.
- Ensure all the variables like
- Avoid Redundant Paths:
- Multiple node paths (
%NODE_HOME%
,%NODE_HOME%\node_modules
,%NODE_HOME%\node_global
) — be sure you need all of them.
- Multiple node paths (
- Organize and Document:
- For maintainability, keep a text document listing your environment variable definitions and what they’re used for.
- Check for Typos:
- There’s a typo in
01Enviroment
(should be “01Environment”) — though harmless functionally, consistent naming helps with clarity.
- There’s a typo in
Would you like help checking if the environment variables like %DJANGO%
or %NODE_HOME%
are defined properly?
【Windows】误删 Path 中的环境变量引发的惨案 - 知乎
D:\1_development\01Envrioment\02JDK\jdk-17.0.0.1\bin;D:\1_development\JDK1.8\bin;D:\1_development\01Envrioment\r\R-4.4.1\bin;D:\1_development\01Envrioment\Go\bin;D:\1_development\01Envrioment\03 C\mingw64\bin;D:\1_development\03SQL\MySQL\MYSQL8.0\bin;D:\1_development\Git\bin;D:\1_development\SQL\Redis;D:\1_development\05 Font\nvm;D:\1_development\05 Font\NodeJS\npm-global;D:\1_development\05 Font\NodeJS\npm-global\node_modules.bin;D:\1_development\nginx-1.18.0;D:\1_development\01Envrioment\Nacos\nacos\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;“C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH”;
软件
windows自带
软件位置
D:\1_development\01Envrioment\02JDK\jdk-17.0.0.1\bin
D:\1_development\01Envrioment\IntelliJ IDEA 2022.1.4\bin
D:\1_development\01Envrioment\r\R-4.4.1\bin
D:\1_development\01Envrioment\apache-jmeter-5.4.1\bin
D:\1_development\01Envrioment\Tomcat8.5.31\bin
D:\1_development\01Envrioment\Go\bin
D:\1_development\01Envrioment\Nacos\nacos\bin
D:\1_development\01Envrioment\Erlang OTP\bin
D:\1_development\01Envrioment\seata\seata-server-1.4.2\bin
D:\1_development\01Envrioment\03 C\mingw64\bin
D:\1_development\03SQL\MySQL\MYSQL8.0\bin
D:\1_development\Git\bin
D:\1_development\SQL\Redis
D:\1_development\nginx-1.18.0
D:\1_development\JDK1.8\bin
D:\1_development\05 Font\nvm
D:\1_development\05 Font\NodeJS\npm-global
D:\1_development\05 Font\NodeJS\npm-global\node_modules\.bin