Yo can do with the instructions below;
If your UiPath version post 2018.4.5;
Open and edit UiPath.config (by default, this file is located at C:\Program Files (x86)\UiPath\Studio) to include the following lines:
<add key=“packagesInstallationFolder” value=< desired installation folder/ >
The file should look something like this.