'dbt deps fails -> the file because it is being used by another process

I've ran "dbt deps" on Windows in VSCode and it runs successfully. After I tried again with another package included, but it failed with the following; "[WinError 32] The process cannot access the file because it is being used by another process: 'dbt_packages\dbtvault-0.7.9'" I've checked and the folder has some contents marked as "Read-Only", every time I change the folder to be non-read-only it changes back.

Has anyone found a solution for this?

Thanks, Dan



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source