【问题标题】:Could not find the required 'adsf' gem, which is necessary for the view command找不到所需的“adsf”gem,这是查看命令所必需的
【发布时间】:2013-12-26 20:42:55
【问题描述】:

我最近在 nanoc 中处理一个项目并安装了bundler,因此我可以使用guard 来查看项目目录。

现在,当我运行 nanoc view 时,网络服务器不会启动,而是显示以下错误:

$ nanoc view
Could not find the required 'adsf' gem, which is necessary for the view command.

我在google group 中读到,有一些拼写错误,其中 gem 包 adsfasdf 被混淆了。我尝试使用sudo gem install 安装它们,但是当我运行命令时,我仍然收到相同的错误消息。

【问题讨论】:

    标签: ruby nanoc asdf-vm adsf


    【解决方案1】:

    gem "adsf" 添加到您的Gemfile,然后运行bundle 命令。然后运行nanoc view。应该可以。

    【讨论】:

    • 一般来说,在使用 Rails 时(而不仅仅是 Ruby 或不同的 Ruby 框架),您使用 Gemfile 来管理 gem,而不是直接安装它们。
    猜你喜欢
    • 2022-08-18
    • 1970-01-01
    • 1970-01-01
    • 2017-05-07
    • 1970-01-01
    • 1970-01-01
    • 2014-03-15
    • 1970-01-01
    相关资源
    最近更新 更多