[英]ruby cmd not working in folders rbenv: ruby: command not found
ruby cmd works in the below folder. ruby cmd 在以下文件夹中工作。 But when I get into another folder, it wont work.
但是当我进入另一个文件夹时,它不会工作。
pwd
/Users/abc/git/lib
ruby --version
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin19]
When I do the same command, I get error当我执行相同的命令时,出现错误
pwd
/Users/abc/git/lib/test
ruby --version
rbenv: ruby: command not found
The `ruby' command exists in these Ruby versions:
2.5.3
It is weired but it could be a different .local
file inside the test folder.它很奇怪,但它可能是测试文件夹中的另一个
.local
文件。 Run rbenv version
in both folder so we can see if there is a local setting for rbenv.在两个文件夹中运行
rbenv version
,以便我们可以查看是否有 rbenv 的本地设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.