After npm installing a library that has complete as a dependency, suddenly my shell's default settings disappeared. After some digging, I figured out that it was because this library writes a .bash_profile file in user's home directory. When .bash_profile exists, OSX stops sourcing .profile. I think it would be better if this library could check to see if .bash_profile or .profile exists and use whichever one is available.
After npm installing a library that has complete as a dependency, suddenly my shell's default settings disappeared. After some digging, I figured out that it was because this library writes a .bash_profile file in user's home directory. When .bash_profile exists, OSX stops sourcing .profile. I think it would be better if this library could check to see if .bash_profile or .profile exists and use whichever one is available.