Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Instaling Sass #1869

Closed
EddAvila opened this issue Oct 27, 2015 · 4 comments
Closed

Error Instaling Sass #1869

EddAvila opened this issue Oct 27, 2015 · 4 comments

Comments

@EddAvila
Copy link

When I try to install sass, I get this error ->

ERROR: Error installing sass:
invalid gem: package is corrupt, exception while verifying: undefined method 'size' for nil:NilClass (NoMethodError) in C:/Ruby22-x64/lib/ruby/gems/2.2.0/cache/sass-3.4.19.gem

I'm trying to install sass with the ruby command prompt in windows

@chriseppstein
Copy link

Hi, I think you're downloaded gem file is corrupted somehow. Please remove that file and try again.

@EddAvila
Copy link
Author

Yes, I try that, for now I have an earlier version installed

@chriseppstein
Copy link

@EddAvila I'm glad you have a work around. Unfortunately, none of the Sass developers have a Windows machine so we can't reproduce this.

➜  rbenv shell 2.2.3
➜  gem install sass
Fetching: sass-3.4.19.gem (100%)
Successfully installed sass-3.4.19
1 gem installed

All the similar issues I see on google indicate that this is due to a corrupted ruby install or gem.

@DOkwufulueze
Copy link

DOkwufulueze commented Aug 23, 2017

For Ubuntu users, I had a similar issue but deleting the already downloaded [corrupt] gem [~/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/cache/sass-3.5.1.gem] and reinstalling it fixed the problem.

rm ~/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/cache/sass-3.5.1.gem
gem install sass -v '3.5.1'

@nex3 nex3 closed this as completed Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants