Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I fix the message "You didn't really think you could install Ruby through npm, did you?"

I'm trying to install homebrew on my Mac OSX Yosemite machine. When I try to follow the conventional installation process:

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

I keep getting the message in my terminal "You didn't really think you could install Ruby through npm, did you?"

To my knowledge, Yosemite comes with Ruby 2.0 installed in the PATH. If this is so, why do I keep getting this message and how do I install Ruby and Homebrew.

I looked up a number of examples online but every example for installing Homebrew requires ruby and every example for installing Ruby requires Homebrew.

SMH, why not give me a message of what I need to do instead of a bullshit comedy message?!?

like image 248
rashadb Avatar asked Sep 29 '22 06:09

rashadb


2 Answers

Using /usr/bin/ruby instead of plain ruby as already suggested will work.

However, this is only applying a bandaid; you should be stopping the bleeding, because the inane npm ruby will still be in your path and may come back to bite you in the rear-end.

A more sane approach would be to un-install the npm ruby. Something like:

npm uninstall -g ruby
like image 66
Denis de Bernardy Avatar answered Oct 03 '22 02:10

Denis de Bernardy


Try the same command but starting with /usr/bin/ruby which is the full absolute path to the ruby that is bundled with OS X. If you type which ruby my guess is you are running a different program also named "ruby" that is "not the droids you are looking for" if you know what I mean. Another good sanity check is /usr/bin/ruby -v should print something similar to "ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]".

like image 25
Peter Lyons Avatar answered Oct 03 '22 01:10

Peter Lyons