bbatsov / projectile

Project Interaction Library for Emacs
https://docs.projectile.mx
GNU General Public License v3.0
4k stars 583 forks source link

When using projectile with the npm config I get npm command not found #1906

Open suityou01 opened 1 month ago

suityou01 commented 1 month ago

Expected behavior

npm commands execute correctly

Actual behavior

npm start
zsh:1: command not found: npm

Steps to reproduce the problem

Configure your default shell to zsh Install projectile Add config for npm from the projectile documentation Open an npm project inside emacs using C-p p Try and run the project using C-p u

Environment & Version information

Arch Node v20.17.0 Nvm 0.40.1 zsh 5.9

Projectile version information

Projectile 20240901.1554

Emacs version

29.4

Operating system

Arch

bbatsov commented 1 month ago

Likely you're Emacs's exec-path is not properly configured. Using a package like https://github.com/purcell/exec-path-from-shell will probably solve this issue for you.

suityou01 commented 1 month ago

That didn't fix it sadly. I noticed that if I run an eshell I get the problem, but with shell I don't. Does this help narrow it down? What mode does the compilation window use?