see path in mac code example
Example 1: $path mac
sudo nano /etc/paths
Example 2: which path variable should i use in mac
export PATH=$HOME/bin:./node_modules/.bin:$PATH
sudo nano /etc/paths
export PATH=$HOME/bin:./node_modules/.bin:$PATH