Rails - The system cannot find the path specified

前端 未结 10 1888
天命终不由人
天命终不由人 2020-12-07 11:21

I have installed Rails and Ruby on Windows with railsinstaller. The problem is, when I run the rails command, it gives me: \"The system cannot find the path specified.\"

10条回答
  •  有刺的猬
    2020-12-07 11:55

    I opened all the .bat files under C:\RailsInstaller\Ruby2.2.0\bin in Sublime Text, and replaced with Ctrl+Shift+F,

    this
    @"C:\Users\emachnic\GitRepos\railsinstaller-windows\stage\Ruby2.2.0\bin\ruby.exe"
    with this
    @"%~dp0ruby.exe"
    across all files that had a match.

    Took only a couple of seconds. This might help someone who stumbles across it after me and is daunted by the idea of performing a find and replace over multiple files.

提交回复
热议问题