Loading Depth Study
Preparing your workspace
Environment variables provide configuration to processes, while PATH tells the shell which directories to search for executable commands.
Environment variables are key-value information inherited by processes from their environment. Common examples include PATH, HOME, and application-specific configuration. PATH is especially important because when you type a command, the shell searches the directories listed there to find the executable. Understanding PATH explains many common errors such as 'command not found'.
After installing Node.js, the node executable must be available through PATH so the terminal can find it from different directories.
echo $HOME echo $PATH which node which npm export APP_ENV=development echo $APP_ENV
The commands display environment values, locate executables, and create a temporary environment variable for the current shell session.