gpt4 book ai didi

ruby-on-rails - 为什么我的 Git Bash 不能访问 "bundle"?

转载 作者:太空宇宙 更新时间:2023-11-03 18:23:11 24 4
gpt4 key购买 nike

我正在学习 Rails 教程,我想通过 Git Bash 查看“测试”,因为看起来测试结果的格式更漂亮。

但是,每当我尝试运行“bundle exec ...etc”时。通过 Git Bash,我收到“错误的解释器:没有这样的文件或目录”的错误。现在,我已经检查了那个特定的目录并且我确实有一个 bundle.exe(因为我最近做了“gem bundle install”或“gem install bundle”)。

现在,要明确一点,我可以在 Windows 上通过命令提示符运行“bundle exec”/“bundle install”/“bundle anything...”。只是 Git Bash 不想做这些事情。我该如何解决这个问题?

谢谢。

最佳答案

$PATH 可能无法解释“C:\Program Files (x86)\...”,如“Bundle command not found. Bad Interpreter”中所述。

如“Bundle command not found Windows x64”中所示,尝试在更简单的路径(没有空格,没有特殊字符)中安装任何与 ruby​​ 相关的东西。

关于ruby-on-rails - 为什么我的 Git Bash 不能访问 "bundle"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14697680/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com