Workbench

When Emacs tries to use the wrong node executable

tl;dr

NVM extends the PATH environment variable in .bashrc so that bash can find it, but if an emacs package tries to call a command directly (that is to say, not in a shell) it might not be aware of it.

Fix

Install the emacs exec-path-from-shell package, and add the following to your .emacs file:

(when (memq window-system '(mac ns x))
  (exec-path-from-shell-initialize))

Hat-tip


Wed Apr 10 2024 20:00:00 GMT-0400 (Eastern Daylight Time)