bash::找不到命令Cloud9环境 [英] bash: :command not found Cloud9 Enviroment

查看:244
本文介绍了bash::找不到命令Cloud9环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的第一个Ruby开发,接下来我要教一本书,教我如何构建Pinterest克隆。一切工作正常,直到今天我登录到环境以继续工作为止。尝试运行项目或启动服务器时,出现此错误。

This is my first Ruby development, I'm following through a book thats teaching me to build a Pinterest clone. Everything was working correctly until I logged into the environment today to pick up where I left off. When I try and run the project, or boot up the server, I'm getting this error.

bash: :command not found

昨晚关闭环境后,它可以正常工作,但是我无法在网上找到有关如何解决此问题的任何信息。任何建议都很好。谢谢。让我知道您是否需要提供其他代码。

It was working correctly last night when I closed the environment, and I havn't been able to find any information online as to how to fix the problem. Any suggestions would be great. Thanks. Let me know if you need additional code supplied.

推荐答案

如果仅通过Bundler安装Rails,则只有在运行bundle exec rails时,才能访问Rails。

If you installed Rails only via Bundler, then rails will only be accessible if you run bundle exec rails.

仅当您在没有Bundler的情况下直接安装rails时,裸露的rails命令才会存在。

A "naked" rails command will only exist if you gem install rails directly without Bundler.

这篇关于bash::找不到命令Cloud9环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆