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

I am trying to install homebrew on my Mac OSX Yosemite. When I try to complete the normal installation process:

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

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

As far as I know, Yosemite comes with Ruby 2.0 installed in PATH. If so, why am I continuing to receive this message and how to install Ruby and Homebrew.

I looked at a few examples on the Internet, but every example for installing Homebrew requires rubies, and every example of installing Ruby requires Homebrew.

SMH, why not give me a message about what I need to do, and not a nightmare message?!?

+5
source share
2 answers

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

However, this applies only to binding; you must stop the bleeding because the unsuccessful ruby ​​rubpm will still be in your way and may come back to bite you at the back end.

A more robust approach would be to remove rpm ruby. Sort of:

 npm uninstall -g ruby 
+2
source

Try the same command, but starting with /usr/bin/ruby , which is the complete absolute path to the ruby ​​that is associated with OS X. If you type which ruby , I think you are using another program, also called "ruby", which is "not the droids you are looking for," if you know what I mean. Another good performance check for /usr/bin/ruby -v should print something similar to "ruby 2.0.0p481 (version 2014-05-08, version 45883) [universal.x86_64-darwin14]."

+2
source

Source: https://habr.com/ru/post/1208772/


All Articles