Making sure /usr/local/bin is in my $PATH on mac

Macosnode.js

Macos Problem Overview


I've installed node.js for Macintosh using the lastest installer for Macintosh. I now want to check that /usr/local/bin is in my $PATH, as the installer instructed. I've opened up the Terminal application and researched help on the net, but I'm lost, as to how to accomplish the above, then start the node.js process. Can anyone clear this up? Thank you for very much.

Macos Solutions


Solution 1 - Macos

echo $PATH will print your path. If you see /usr/local/bin between some colons, then it's in your path.

Solution 2 - Macos

open terminal and type the command below

echo $PATH

You should see something like this

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

the presence of /usr/local/bin in the output means you are good to go

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionKevin RussellView Question on Stackoverflow
Solution 1 - MacosGregView Answer on Stackoverflow
Solution 2 - MacosEdwin O.View Answer on Stackoverflow