Dotnet tool "zsh: command not found: libman" error

62 Views Asked by At

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

1

There are 1 best solutions below

2
alperenaydin On

I found the solution,

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

, run this code, you can use libman commands