Grunt does not work: - bash: exec: grunt: not found

I installed node v0.8.14 on Mac OS 10.7.5. Then I installed Grunt with npm install -g grunt .

Node works fine, Grunt doesn't. He continues to say: -bash: exec: grunt: not found

Any idea what I am missing?

+4
source share
1 answer

By default, npm is installed in / usr / local. Try /usr/local/bin/grunt in your shell. To just enter grunt , add

 export PATH="$PATH:/usr/local/bin" 

to the ~/.profile file.

+2
source

Source: https://habr.com/ru/post/1446623/


All Articles