我已经在本地设置了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参数,因为它将为我提供
发布于 2016-10-14 02:33:41
不知道问题出在哪里,但scss-lint基本上是一个语法检查器。我发现如果我删除scss-lint,TWBS就会遵守。
尝试:
sudo gem uninstall scss-lint希望会有一个比这个更好的答案,但现在这将会让你继续前进。
https://stackoverflow.com/questions/39730094
复制相似问题