PATH=/usr/local/bin:$PATH然后运行,source ~/.zshrc,然后用rbenv卸载ruby版本--您正在尝试设置全局并重新安装它然后卸载rails,如果它说rails没有安装,那么安装rails,所有内容都应该运行:)
我最近买了MacBook Pro 16作为我的第一台Mac,这是地狱以来,试图让rails工作。注意,命令行工具已
我使用的是Windows10,安装了Ruby 2.6.14和bash 4.3.42(5)。而且我不能运行ruby,错误如下:rails : The term 'rails' is not recognized as the name of aAt line:1 char:1+ ~~~~~
+ CategoryInfo : ObjectNotFound: (rails: