简体   繁体   English

无法通过ruby gem安装特定版本的Susy

[英]Cannot install specific version of Susy through ruby gem

I need to install susy with gem. 我需要用宝石安装susy When I type 当我打字

sudo gem install susy --version 0.9

It would result an error message: 这将导致错误消息:

ERROR:  Could not find a valid gem 'susy' (= 0.9) in any repository

However I have checked the source at github and the 0.9 tag does exist. 但是我已经在github上检查了源,并且0.9标记确实存在。

How can this happen? 怎么会这样 How to force rubygem to download those specific version instead of the latest version? 如何强迫rubygem下载那些特定版本而不是最新版本?

When I run: 当我跑步时:

gem install susy --version 0.9 -V

I see that gem is going to rubygems.org for the gem in question. 我看到该gem将在rubygems.org上找到该宝石。

However when I look for the susy gem on that server, all I find is version 1.0.1 . 但是,当我在该服务器上寻找susy宝石时,我发现的只是版本1.0.1

In your Gemfile, you could try to specify the source of the gem from a git repo as they do in this question . 在您的Gemfile中,您可以尝试从git repo中指定gem的来源,就像他们在此问题中所做的那样。

Normally, you'd put all of your gems you want to use in a Gemfile and then run bundle install from the directory that contains the Gemfile. 通常,您会将所有要使用的gem放入Gemfile中,然后从包含Gemfile的目录中运行bundle install

The 0.9 version of the Susy gem was called compass-susy-plugin . Susy gem的0.9版本被称为“ compass-susy-plugin What you want is: 您想要的是:

gem install compass-susy-plugin

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

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