I'm looking at my $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/MacGPG2/bin:/usr/local/mysql/bin:/Users/gpiuser/Library/Android/sdk/platform-tools:/Users/gpiuser/Library/Android/sdk/toolsHOME/.npm/bin
And noting that last directory is not a directory. I'm guessing it should look like
tools:Users/gpiuser/.npm/bin
instead of
toolsHOME/.npm/bin
and that something went wrong with a node.js installation at some point.
So I look at my .bash_profile:
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/MacGPG2/bin:/usr/local/mysql/bin
export
PATH=${PATH}:/Users/gpiuser/Library/Android/sdk/platform-tools:/Users/gpiuser/Library/Android/sdk/toolsHOME/.npm/bin
export
NODE_PATH=$HOME/.npm/lib/node_modules
and I THINK I should correct the file to reflect the above change and run source ~.bash_profile
Am I right?
Best Answer
Your fix is missing a forward slash before Users, therefore
…tools:/Users/gpiuser/.npm/bin
.It seems
…tools:$HOME/.npm/bin
was what was intended, but stating the literal path works too.