During the execution of commands such as hvigor and ohpm within the terminal in DevEco Studio, the built-in environment variables are used by default, eliminating the need for additional configuration.
Configure the built-in environment variables in DevEco Studio as follows:
Choose File > Settings (DevEco Studio > Preferences/Settings on macOS) > Tools > Terminal and select the following options to enable the built-in environment variables. The configuration takes effect after DevEco Studio restarts.

In addition to the built-in environment variables, you can configure the PATH environment variable in the local system. If both are configured, the following priority rule applies: