Pub: Command "pub get" is failed under windows 10

Created on 23 Feb 2017  Â·  4Comments  Â·  Source: dart-lang/pub

Command "pub get" is failed under windows 10, for example:

Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:Usersmicrcx> cd .IdeaProjects
PS C:UsersmicrcxIdeaProjects> cd .TimerTest
PS C:UsersmicrcxIdeaProjectsTimerTest> pub get
Resolving dependencies...
Downloading crypto 0.9.2+1...
Downloading convert 1.1.1...
Failed to rename directory because access was denied.
This may be caused by a virus scanner or having a file
in the directory open in another application.
PS C:UsersmicrcxIdeaProjectsTimerTest>

Not clear what to do in such a situation. What is the cause of the error?

Most helpful comment

Hi,
All I can advise is to switch to "ubuntu" or "linux Mint". This is a
radical and the only correct way to solve the problem.
Regards,
Michael Kanzieper

On Sat, Feb 24, 2018 at 9:29 AM, Chandan Singh notifications@github.com
wrote:

Same error was on my laptop too. I pause antivirus and firewall protection
the it worked.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dart-lang/pub/issues/1520#issuecomment-368207771, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABQDoQFo7qBtPwQq7OqA6lF6nH0uphN3ks5tX7pDgaJpZM4MKcdY
.

All 4 comments

The underlying cause here is probably an issue with your OS not having permissions, but you can figure out the exact rename being done by passing --verbose to pub get.

I've found the cause of the error. OS's message close to the truth. If you disable the antivirus (scanning turn off, in my case it is McAfee), the command pub get is performed without problems. The first time I was faced with the usual upgrade procedure that conflicts with antivirus. However, there is hope that the issue will be solved by itself when McAfee will select dart as software.

Same error was on my laptop too. I pause antivirus and firewall protection the it worked.

Hi,
All I can advise is to switch to "ubuntu" or "linux Mint". This is a
radical and the only correct way to solve the problem.
Regards,
Michael Kanzieper

On Sat, Feb 24, 2018 at 9:29 AM, Chandan Singh notifications@github.com
wrote:

Same error was on my laptop too. I pause antivirus and firewall protection
the it worked.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dart-lang/pub/issues/1520#issuecomment-368207771, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABQDoQFo7qBtPwQq7OqA6lF6nH0uphN3ks5tX7pDgaJpZM4MKcdY
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

samueladekunle picture samueladekunle  Â·  25Comments

sinadarvi picture sinadarvi  Â·  24Comments

sanjidtt picture sanjidtt  Â·  36Comments

pq picture pq  Â·  24Comments

crajygemer picture crajygemer  Â·  24Comments