I do not notice this issue when I try to use the
npm from emacs eshell.
I found that the
npm can be found from bash in
iTerm2 but cannot be found from emacs eshell.
Then I notice that the emacs do not sync the interal
PATH with what you can check from
Here I want to tell a good package for emacs from stackoverflow:
With simple setup, you path could be right:
(when (memq window-system '(mac ns))