我刚刚加入Windows Insider程序,因此可以安装Ubuntu并通过bash命令安装Ruby。每次我打开ubuntu命令提示符时,它都不允许我运行任何命令而不会引发错误。例子
命令'sudo'在'/ usr / bin / sudo'中不可用
在Ubuntu命令提示符的顶部,它显示: / usr / bin / env:'bash':没有这样的文件或目录
如何解决此问题。我需要设置红宝石以便可以开始开发。
答案 0 :(得分:0)
可以通过执行命令$ echo $ PATH
检查PATH变量的内容。如果在输出中找不到/ usr / bin,则可以通过执行命令将/ usr / bin附加到PATH变量中
// instead of the "next" variablt use the following
var nextMock = new Mock<ResourceExecutionDelegate>();
//Run
await filter.OnResourceExecutionAsync(context, nextMock.Object);