Skip to content

dotnet tool install fails without explanation on dotnet 6 #679

Closed
@carlin-q-scott

Description

@carlin-q-scott

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy