skip to Main Content

I am developing a .Net project and I need to use the libman tool. I write the dotnet tool install -g Microsoft.Web.LibraryManager.Cli command via the terminal, the installation is completed, I check it with the dotnet tool list -g command and the tool appears to be installed, but despite this, when I try to run the libman command, "zsh: command not found: libman" I’m getting the error. What is the reason?

dotnet tool install -g

dotnet tool list -g

Microsoft.Web.LibraryManager.Cli

Package Id Version Commands

microsoft.web.librarymanager.cli 2.1.175 libman

zsh: command not found: libman

2

Answers


  1. Chosen as BEST ANSWER

    I found the solution,

    sudo ln -s ~/.dotnet/tools/libman /usr/local/bin/libman

    , run this code, you can use libman commands


  2. A solution that worked for me was just adding dotnet tools to my PATH in my .zshrc file.

    export PATH=$PATH:$HOME/.dotnet/tools
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search