Ruby 安装sass 3.3的预发行版gem失败(sass需要侦听(~>;0.7))
由于添加了sourcemap支持,我正在尝试安装sass(3.3)的预发布版本,但由于以下错误而失败:Ruby 安装sass 3.3的预发行版gem失败(sass需要侦听(~>;0.7)),ruby,gem,sass,Ruby,Gem,Sass,由于添加了sourcemap支持,我正在尝试安装sass(3.3)的预发布版本,但由于以下错误而失败: ERROR: While executing gem ... (Gem::DependencyError) Unable to resolve dependencies: sass requires listen (~> 0.7) WARNING: vendor/listen doesn't exist, and this isn't a git repository so
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: sass requires listen (~> 0.7)
WARNING: vendor/listen doesn't exist, and this isn't a git repository so I can't get it automatically!
chmod -R a+rx bin
rake aborted!
Command failed with status (127): [chmod -R a+rx bin...]
C:/Users/xxx/sass-master/Rakefile:44:in `block in <top (required)>'
Tasks: TOP => install => package => permissions
(See full trace by running task with --trace)
ERROR: Error installing sass:
sass requires listen (~> 0.7, runtime)
我使用了以下命令:
gem install sass --pre
直到现在,我已经安装了sass v3.2.8。在安装预版本之前卸载此版本没有帮助
有什么想法吗
还有一件事:我也想过直接从git存储库安装它,但我不知道从哪个分支可以获得预版本
我也在sass git存储库的问题跟踪程序上发布了这个问题:
编辑: 我刚刚尝试使用“rake install”从git hub安装主分支,但这给了我以下错误:
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: sass requires listen (~> 0.7)
WARNING: vendor/listen doesn't exist, and this isn't a git repository so I can't get it automatically!
chmod -R a+rx bin
rake aborted!
Command failed with status (127): [chmod -R a+rx bin...]
C:/Users/xxx/sass-master/Rakefile:44:in `block in <top (required)>'
Tasks: TOP => install => package => permissions
(See full trace by running task with --trace)
ERROR: Error installing sass:
sass requires listen (~> 0.7, runtime)
警告:供应商/listen不存在,而且这不是git存储库,因此我无法自动获取它!
chmod-R a+接收箱
雷克流产了!
命令失败,状态为(127):[chmod-ra+rx bin…]
C:/Users/xxx/sass-master/Rakefile:44:in'block-in'
任务:TOP=>install=>package=>permissions
(通过使用--trace运行任务查看完整跟踪)
毫无疑问,预发行版存在问题。也就是说,我使用gem-install-sass-version=3.3.0.alpha.184
成功地使它工作。如果需要指南针,请尝试使用v0.12.2
然后你需要用指南针来运行SASS,而不是SASS。例如:
sass --compass --sourcemap styles.scss:styles.css
这里的信息:我遇到了一个类似的问题(可能是相同的,但语法略有不同),因为我遇到了以下错误:
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: sass requires listen (~> 0.7)
WARNING: vendor/listen doesn't exist, and this isn't a git repository so I can't get it automatically!
chmod -R a+rx bin
rake aborted!
Command failed with status (127): [chmod -R a+rx bin...]
C:/Users/xxx/sass-master/Rakefile:44:in `block in <top (required)>'
Tasks: TOP => install => package => permissions
(See full trace by running task with --trace)
ERROR: Error installing sass:
sass requires listen (~> 0.7, runtime)
在尝试了imjared给出的上述答案后,我尝试使用gem install sass--version=3.3.0.alpha.103
,如本文中终端的屏幕截图所示,请注意终端命令末尾的.103
和.184