Fixing Bashrc Loading Issue
While I was working on node ‘npm link’, I need to source ~/.bashrc everytime if I want my new npm link to work (even if I already got NODE_PATH in the bashrc file), it turned out to be a bashrc setting problem.
The fix is simple:
Add this snippet in ~/.bash_profile
:
The reason why this issue happened:
Terminal opens a login shell. This means, ~/.bash_profile
will get executed, instead of ~/.bashrc
.