简体   繁体   English

指南针/ SASS中缺少依赖项

[英]Missing Dependencies in Compass/SASS

So I haven't done too much craziness with add-ons via Compass for what I've been using it for. 因此,对于我一直使用它的东西,我并没有对Compass的附件做过多的疯狂。 My primary use case was to leverage the color manipulation libraries and some of the conditional/looping structures to generate some different themes. 我的主要用例是利用颜色处理库和一些条件/循环结构来生成一些不同的主题。

Yesterday I did run an install for an ellipsis library and afterwards was given the following message when attempting to 'watch' my project... 昨天我确实为省略号库运行了安装,然后在尝试“监视”我的项目时收到以下消息...

[Listen warning]: Missing dependency 'wdm' (version '~> 0.1')! [听警告]:缺少依赖项“ wdm”(版本“〜> 0.1”)!
Please run the following to satisfy the dependency: gem install --version '~> 0.1' wdm 请运行以下命令以满足依赖性:gem install --version'〜> 0.1'wdm

For a better performance, it's recommended that you satisfy the missing dependency. 为了获得更好的性能,建议您满足缺少的依赖关系。

I don't see anything in my config file that has anything to do with this 'wdm' reference, so I was hoping someone could help me figure out how to resolve this missing dependency. 我没有在配置文件中看到任何与此“ wdm”引用有关的内容,因此我希望有人可以帮助我弄清楚如何解决这种缺失的依赖性。 I have tried running any and all gem updates possible. 我尝试过运行所有宝石更新。

My current 'Frameworks & Patterns' within Compass are :: 我在Compass中当前的“框架和模式”为::

  • compass/ellipsis - Plugin for cross-browser ellipsis truncated text. 罗盘/省略号-跨浏览器省略号截断文本的插件。
  • compass/extension - Generate a compass extension. 罗盘/扩展名-生成罗盘扩展名。
  • compass/pie - Integration with http://css3pie.com/ 罗盘/饼图-与http://css3pie.com/集成
  • compass/project - The default project layout. 罗盘/项目-默认项目布局。

Here are my @imports :: 这是我的@imports ::

  • @import "compass/css3"; @import“ compass / css3”;
  • @import "compass/css3/user-interface"; @import“ compass / css3 /用户界面”;
  • @import "partials/variables"; @import“部分/变量”;
  • @import "partials/colors"; @import“ partials / colors”;
  • @import "partials/modules"; @import“部件/模块”;

Thanks for reading! 谢谢阅读!

So I resolved the problem. 所以我解决了这个问题。 Still unsure as to what it was that changed in my environment that resulted in me needing to deal with this dependency. 仍然不确定我的环境中发生了什么变化,导致我需要处理这种依赖性。 The solution was not limited to the installation of the wdm gem. 解决方案不仅限于wdm gem的安装。 The native gem dependency required me to install the Ruby DevKit ( http://rubyinstaller.org/downloads ). gem依赖项要求我安装Ruby DevKit( http://rubyinstaller.org/downloads )。

I am using a Windows 7 OS. 我正在使用Windows 7操作系统。 Following the instructions located @ https://github.com/oneclick/rubyinstaller/wiki/Development-Kit I 按照位于@ https://github.com/oneclick/rubyinstaller/wiki/Development-Kit的说明进行操作

  1. unpacked the files to C:\\RubyDevKit 将文件解压缩到C:\\ RubyDevKit
  2. cmd C:\\RubyDevKit Cmd C:\\ RubyDevKit
  3. ruby dk.rb init >> Initialization Complete! ruby dk.rb初始化>>初始化完成!
  4. notepad config.yml 记事本config.yml
  5. Added a reference to my primary ruby install ( - C:/Ruby200-x64 ) 添加了对我的主要ruby安装的引用(-C:/ Ruby200-x64)
  6. checked that I was all good ( ruby dk.rb review ) 检查我一切都很好(ruby dk.rb评论)
  7. ruby dk.rb install 红宝石dk.rb安装

After that, I did a couple gem installs and then went straight for gem install wdm 之后,我做了几次gem安装,然后直接进行gem install wdm

After that, all my compass watching woes were null and void. 在那之后,我所有的指南针观看麻烦都是无效的。

Was it worth it? 它值得吗? Dunno...but at least I'm back to where I started. 邓诺(Dunno)...但至少我回到了起点。

Probably easiest just to install it ( the command is wrong though :P): 可能最简单的就是安装它( 尽管命令 :P 错误 ):

gem install --version 0.1 wdm
# and the latest
gem install wdm

I think it's guard that wants to use wdm (Windows Directory Monitor) . 我认为要使用wdm(Windows Directory Monitor)是守卫。 (Compass uses guard for file listening.) You may have just picked up this change in a recent compass update. (指南针使用保护程序来监听文件。)您可能刚刚在最近的指南针更新中获得了此更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM