RubyonRails——为什么我的终端总是给我这个错误?

b1zrtrql  于 2021-09-29  发布在  Java
关注(0)|答案(1)|浏览(189)

当我运行我的代码时,我得到了这个错误,或者即使我运行 clean 我从你的错误中得到了答案 clean 而不是 ruby 一开始。我已经在我的windows上安装了ubuntu 18.04子系统。我还安装了wsl遥控器。我在vs代码中遇到了这个问题。我刚开始学习软件工程,所以如果我没有给出关于我的问题的明确信息,我很抱歉。希望有人能帮忙。

ruby : The term 'ruby' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify th 
    at the path is correct and try again.
    At line:1 char:1
    + ruby 01.corprime.rb
    + ~~~~
        + CategoryInfo          : ObjectNotFound: (ruby:String) [], CommandNotFoundException

在vs代码中。

p8h8hvxi

p8h8hvxi1#

默认情况下,clean和ruby是中的工具。os如果msg说无法识别,那么vs没有运行此命令或工具的路径请尝试clear而不是clean for ruby尝试安装它并将其添加到路径,或者在vs代码中使用时指定其路径

相关问题