Error while install scss-lint on Visual Studio Code - ruby

I am trying to install gem scss-lint and get the following message error:
gem install scss_lint
ERROR: Could not find a valid gem 'scss_lint' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version (https://rubygems.org/latest_specs.4.8.gz)
I have tryed the following command
gem source -a https://rubygems.org/ following an issue reported on their GitHub but I still have another error message:
YAML safe loading is not available. Please upgrade psych to a version that supports safe loading (>= 2.0).
(I am working on MAC OSX if this may help)
Any idea ?

This is a known issue. Take a look at these links for more info: https://gist.github.com/luislavena/f064211759ee0f806c88
https://github.com/rubygems/rubygems/issues/1050
Short term workaround is using this source: 'http://rubygems.org'

Related

How do I nuke RubyGems and start again from scratch?

I've been trying to update cocoapods on my laptop this evening and I'm getting a weird RubyGems error...
With the following command...
sudo gem install cocoapods
I got the following error.
ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version (https://rubygems.org/latest_specs.4.8.gz)
Not sure where to go from here. This used to work (two weeks ago) and the only reference I found online was from 4 years ago.
I tried updating gems gem update --system but it told me I'm on the latest version.
I can list gems and uninstall them. I just can't install them?
Oh man. I managed to get it to update with sudo and now with...
sudo gem install cocoapods
I get the error...
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/xcodeproj
No idea what that means?!
Oh god! OK, so I followed the advice here... https://github.com/CocoaPods/CocoaPods/issues/3692
And pod init worked. But when I restarted terminal it now says pod: command not found.
How do I nuke ruby gems and start again?

gem install sass error

I am trying to install sass and I tried ruby installer. I am getting the error as follow.Please anyone help.
C:\Ruby23-x64>gem install sass
ERROR: Could not find a valid gem 'sass' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
gem install by default uses https://rubygems.org/ as it's source for gems, but you can specify the source using --source option and give a non-SSL source to install like following:
gem install sass --source http://rubygems.org/

Ruby Certificate Error

I am trying to install a migration tool called move to go for a CRM system called Lime but I get an error. I dont know why, the certificate says it's valid in the SSL.
This is the step by step guide that I am executing:
https://github.com/Lundalogik/move-to-go/blob/master/step-by-step.md
and this is the documentation:
https://github.com/Lundalogik/move-to-go
C:\Users\gujo>gem install move-to-go
ERROR: Could not find a valid gem 'move-to-go' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/latest_specs.4.8.gz)
Any suggestions?
This is due to Ruby SSL certificate that has changed.
You can install a newer version of RubyGem to fix the issue.
Example, on Windows:
Download https://rubygems.org/downloads/rubygems-update-2.6.7.gem and save it to C:\rubygems-update-2.6.7.gem
Open a command prompt and run the commands :
gem install --local C:\rubygems-update-2.6.7.gem
update_rubygems --no-ri --no-rdoc
gem --version and check it is 2.6.7
gem uninstall rubygems-update -x to remove the update package
Finally, retry your gem install command and the SSL error should be gone !
Source: http://guides.rubygems.org/ssl-certificate-update/#installing-using-update-packages

ruby gem on windows 10 not working

I am trying to install sass with ruby on my windows machine gem install sass but it is not working.
I get the following error:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
After googling around I found this workaround:
https://gist.github.com/luislavena/f064211759ee0f806c88
The thing is that I already have an AddTrustExternalCARoot-2048.pem in my ssl_certs directory.
gem --version shows 2.4.5.1
I am using windows 10 and downloaded the installer from ruby website: http://rubyinstaller.org/downloads/
ruby -v shows ruby 2.2.5p319 (2016-04-26 revision 54774) [i386-mingw32]
What can I do?
You can go into your gemfile and change the source to http://rubygems.org (lose the https://).

Error with command: 'rails new "project name"'

DL is deprecated, please use Fiddle
Fetching gem metadata from ............
Fetching additional metadata from
Resolving dependencies...
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read
server certificate B: certificate verify failed (https://rubygems.org/gems/rake-
10.4.2.gem)
An error occurred while installing rake (10.4.2), and Bundler cannot continue.
Make sure that `gem install rake -v '10.4.2'` succeeds before bundling.
I have the same issue and i have solved it by upgrading to latest version,
Download latest rubygems package from rubygems
Unpack at your specific path like D:\Ruby\RubyGems.
Bring up your command line by following this Win + R, cmd , Enter
Go to the directly where you unpacked rubygems package to: cd D:\Ruby\RubyGems
Run ruby setup.rb
Let me know if it solve your problem.

Resources