Date: 2024-11-14 10:21:47
Score: 1
Natty:
Steps:
- Create a new folder on the desired drive (e.g., D:\PubCache).
- Open System Properties (Win + R > sysdm.cpl > Advanced tab > Environment
Variables).
- Under User Variables, click New and add:
- Variable Name: PUB_CACHE
- Variable Value: D:\PubCache (or another location on the same drive as your
project).
- Move the contents of the existing cache folder
(C:\Users\ADMIN\AppData\Local\Pub\Cache) to the new location (D:\PubCache) if you
want to keep the existing cached packages.
- Restart your terminal or IDE to apply the changes.
- Run the following commands:
- flutter clean
- flutter pub get
Reasons:
- Long answer (-0.5):
- No code block (0.5):
- Low reputation (1):
Posted by: Gospel John