I get the below error when I try to get packages of beautifulsoup in my dart console project.
[scrape_3] pub get
Resolving dependencies...
+ beautifulsoup 0.0.1
Downloading beautifulsoup 0.0.1...
Failed to rename directory because it was in use by another process.
This may be caused by a virus scanner or having a file
in the directory open in another application.
exit code 1
My pubspec.yaml file is as follows:
name: scrape_3
description: A sample command-line application.
# version: 1.0.0
# homepage: https://www.example.com
environment:
sdk: ">=2.10.0 <3.0.0"
#dependencies:
# path: ^1.7.0
dev_dependencies:
pedantic: ^1.9.0
test: ^1.14.4
dependencies:
beautifulsoup: ^0.0.1
html: ^0.13.3+3
How can I solve this? this is a recurring error for me and happens often.