0

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
  • Hi @alperenaydin! Welcome to Stack Overflow! It's great that you found a solution. You can post it as an answer as well. Commented Feb 3, 2024 at 20:32

2 Answers 2

3

Try to run this command and re-run yours, as it should fix the issue

sudo ln -s ~/.dotnet/tools/libman /usr/local/bin/libman 
Sign up to request clarification or add additional context in comments.

1 Comment

Same issue with me, but with swagger , command not found - using Ubuntu under WSL2 - creating the symbolic link resolved the issue
0

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

export PATH=$PATH:$HOME/.dotnet/tools 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.