Just to remind myself in the future. Add this to
.profile in order to have per project installed node modules executable in $PATH:
Unfortunately, this works only in root project directory, not when I use GNU Emacs. Solution is to use
.dir-locals.el file in project directory with following code inside:
((nil . ((eval . (progn (add-to-list 'exec-path (concat (locate-dominating-file default-directory ".dir-locals.el") "node_modules/.bin/")))))))
When you start GNU Emacs somewhere in your project directory, he will ask do you want to apply local settings. You can answer with 'y' or '!' (to apply those permanently). That will add
$(your project)/node_modules/.bin to your $PATH inside GNU Emacs. No need to install any npm modules globally any more.