Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

node.js

macos

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.

like image 489
Kevin Russell Avatar asked Oct 05 '13 19:10

Kevin Russell


People also ask

How do I find my path on Mac?

Show the path to a file or folder On your Mac, click the Finder icon in the Dock to open a Finder window. Choose View > Show Path Bar, or press the Option key to show the path bar momentarily. The location and nested folders that contain your file or folder are displayed near the bottom of the Finder window.


2 Answers

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

like image 131
Greg Avatar answered Oct 24 '22 20:10

Greg


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

like image 42
Edwin O. Avatar answered Oct 24 '22 19:10

Edwin O.