dotnet-script icon indicating copy to clipboard operation
dotnet-script copied to clipboard

dotnet tool install fails without explanation on dotnet 6

Open carlin-q-scott opened this issue 3 years ago • 0 comments

When I try to install the dotnet cli tool globally

dotnet tool install --global dotnet-script

I get this response:

Failed to install tool package 'dotnet-script': Access to the path 'C:\Users\me.dotnet\tools.store.stage\yz1gqtsw.afe' is denied. Tool 'dotnet-script' failed to install. This failure may have been caused by:

  • You are attempting to install a preview release and did not use the --version option to specify the version.
  • A package by this name was found, but it was not a .NET tool.
  • The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
  • You mistyped the name of the tool.

For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool

  • I installed dotnet-ef globally without issue.
  • I've deleted my tools folder to see if that was the issue, and it was not.
  • I watched the .stage folder during install and it did indeed download and extract the nuget package before failing and deleting the folder.

dotnet --version 6.0.302 dotnet nuget --version 6.2.1.7

carlin-q-scott avatar Aug 08 '22 23:08 carlin-q-scott