当前位置 : 主页 > 编程语言 > ruby >

找不到带有可执行sass的gem sass(> = 0.a)

来源:互联网 收集:自由互联 发布时间:2021-06-23
最近的操作系统更新到High Sierra之后.我遇到了SASS和Grunt的问题. 当我跑咕噜声 Running "sass:compressed" (sass) taskTraceback (most recent call last): 2: from /usr/local/bin/sass:22:in `main' 1: from /usr/local/Cellar
最近的操作系统更新到High Sierra之后.我遇到了SASS和Grunt的问题.

当我跑咕噜声

Running "sass:compressed" (sass) task
Traceback (most recent call last):
    2: from /usr/local/bin/sass:22:in `<main>'
    1: from /usr/local/Cellar/ruby/2.5.0/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path'
/usr/local/Cellar/ruby/2.5.0/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem sass (>= 0.a) with executable sass (Gem::GemNotFoundException)

我尝试更新ruby并重新安装grunt:

> npm install grunt --save-dev
npm WARN grunt-contrib-imagemin@0.1.4 requires a peer of grunt@~0.4.0 but none was installed.
npm WARN grunt-contrib-sass@0.4.1 requires a peer of grunt@~0.4.0 but none was installed.
npm WARN grunt-contrib-uglify@0.2.7 requires a peer of grunt@~0.4.0 but none was installed.
npm WARN grunt-contrib-watch@0.4.4 requires a peer of grunt@~0.4.0 but none was installed.
npm WARN wb2012@0.0.0 No license field.
不知道为什么,但我不得不重新安装sass gem install sass并修复它.
网友评论