question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't invoke global tool in bash

See original GitHub issue

Steps to reproduce

Install a global tool.

Expected behavior

Global tool should exist.

Actual behavior

root@f43f17fa565a:/# dotnet tool list -g
Package Id           Version      Commands
------------------------------------------
nuke.globaltool      1.0.0        nuke
root@f43f17fa565a:/# bash
root@f43f17fa565a:/# nuke
bash: nuke: command not found

Everything works inside Windows.

Environment data

root@f43f17fa565a:/# dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   2.1.300-preview2-008530
 Commit:    822ae6d43a

Runtime Environment:
 OS Name:     debian
 OS Version:  9
 OS Platform: Linux
 RID:         debian.9-x64
 Base Path:   /usr/share/dotnet/sdk/2.1.300-preview2-008530/

Host (useful for support):
  Version: 2.1.0-preview2-26406-04
  Commit:  6833f3026b

.NET Core SDKs installed:
  2.1.300-preview2-008530 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.0-preview2-final [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.0-preview2-final [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.0-preview2-26406-04 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
peterhuenecommented, May 6, 2018

For the OSX installer, it should work. Let me investigate. I’ll reopen this issue for now.

0reactions
matkochcommented, May 9, 2018

Thanks everyone!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't execute global Node.js module from Bash shell script ...
Try echo $SHELL in your terminal window. It is possible your shell is not bash. Also check that your script is indeed running...
Read more >
Troubleshoot .NET tool usage issues
If you're trying to run a global tool, check that the PATH environment variable on your machine contains the path where you installed...
Read more >
NET tools - .NET CLI
Invoke a tool-path tool​​ To invoke a global tool that's installed by using the tool-path option, ensure that the command is available as ......
Read more >
How to fix a "Command not found" error in Linux
5 ways to fix "Command not found" errors · 1. Include the path · 2. Add a new path · 3. Copy a...
Read more >
Unable to run file from command line after adding to PATH
So I have a function that I wish to run from my command line. cat foo.sh #!/bin/bash echo foobar. I export it to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found