Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Dynamically add your Node.js bin path to exec-path in Spacemacs
(defun dotspacemacs/user-init ()
;; Use whatever node is available
(setq node-path (mapconcat
'identity
(butlast (split-string (executable-find "node") "\\/")) "/"))
(add-to-list 'exec-path node-path t))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment