运行grunt罗盘手表给我弃用警告。
以下是终端中的错误日志:
Running "watch" task
Waiting...
>> File "source/sass/layout/_navigation.scss" changed.
Running "compass:dist" (compass) task
DEPRECATION WARNING on line 275 of /Users/username/Sites/sitename/www/projectname/bower_components/foundation/scss/foundation/components/_global.scss:
Assigning to global variable "$default-float" by default is deprecated.
In future versions of Sass, this will create a new local variable.
If you want to assign to the global variable, use "$default-float: left !global" instead.
Note that this will be incompatible with Sass 3.2.
DEPRECATION WARNING on line 276 of /Users/username/Sites/sitename/www/projectname/bower_components/foundation/scss/foundation/components/_global.scss:
Assigning to global variable "$opposite-direction" by default is deprecated.
In future versions of Sass, this will create a new local variable.
If you want to assign to the global variable, use "$opposite-direction: right !global" instead.
Note that this will be incompatible with Sass 3.2.
DEPRECATION WARNING: The return value of index() will change from "false" to
"null" in future versions of Sass. For compatibility, avoid using "== false" on
the return value. For example, instead of "@if index(...) == false", just write
"@if not index(...)".
on line of /Users/username/Sites/sitename/www/projectname/bower_components/foundation/scss/foundation/_functions.scss, in `exports'
from line 342 of /Users/username/Sites/sitename/www/projectname/bower_components/foundation/scss/foundation/components/_global.scss
from line 5 of /Users/username/Sites/sitename/www/projectname/bower_components/foundation/scss/foundation/components/_grid.scss
from line 103 of /Users/username/Sites/sitename/www/projectname/source/sass/style.scss
write development/includes/css/mercutio.css (2.757s)
Done, without errors.
这是否意味着我必须更新某个npm软件包,还是在基础框架中?
编辑:顺便说一下:运行指南针v1.0.1:
→ compass -v
Compass 1.0.1 (Polaris)
Copyright (c) 2008-2015 Chris Eppstein
Released under the MIT License.
Compass is charityware.
Please make a tax deductable donation for a worthy cause: http://umdf.org/compass
答案 0 :(得分:0)
发现问题。似乎我的sass已经过时了。是3.3(Maptastic Maple),应该是3.4(选择性史蒂夫)。
运行
$ sudo gem install sass
了解您的版本。如果它早于3.4,则运行
{{1}}
安装新版本。