【问题标题】:Grunt - bundler: failed to load command: scss-lintGrunt - bundler:加载命令失败:scss-lint
【发布时间】:2016-09-27 16:42:04
【问题描述】:

我在本地设置了 bootstrap 4,当我运行 grunt watch 时收到以下警告:

Running "scsslint:docs" (scsslint) task
Warning: 
bundleExec options set but no Bundler executable found in your PATH.
More info: https://github.com/ahmednuaman/grunt-scss-lint
 Use --force to continue.

Aborted due to warnings. 

为了解决这个问题,我运行了以下命令:

sudo gem install bundler -n /usr/local/bin

然后我收到以下消息:

Running "scsslint:docs" (scsslint) task
Running scss-lint on docs
>> 1. Please make sure you have ruby installed: `ruby -v`
>> 2. Install the `scss-lint` gem by running:
>> gem update --system && gem install scss-lint

所以我运行了以下命令:

sudo gem update --system -n /usr/local/bin
sudo gem install scss_lint -n /usr/local/bin

现在当我运行 grunt watch 时,我得到以下信息:

Running "scsslint:docs" (scsslint) task
Running scss-lint on docs
bundler: failed to load command: scss-lint (/usr/local/bin/scss-lint)
Warning: Task "scsslint:docs" failed. Use --force to continue.

我在 OSX El Capitan 上。有人知道如何解决这个问题吗?

仅供参考,我必须在命令上使用 -n /usr/local/bin 参数,因为它会给我

【问题讨论】:

    标签: ruby twitter-bootstrap gruntjs rubygems


    【解决方案1】:

    不确定是什么问题,但scss-lint 基本上是一个语法检查器。我发现如果我删除scss-lint,TWBS 就会遵守。

    试试:

    sudo gem uninstall scss-lint
    

    希望会有比这更好的答案,但现在这会让你继续前进。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-04-05
      • 2021-06-30
      • 2023-04-09
      • 2022-08-17
      • 2019-10-02
      • 2018-11-11
      • 1970-01-01
      相关资源
      最近更新 更多