Reputation: 37
When attempting to deploy grunt on CentOS, I'm receiving the error: "Unable to find local grunt".
I tried the suggested: npm install -g grunt
but I receive the error
"npm command not found". This is odd because I have npm-3.10.8-1.6.9.1.4.el7.x86_64 already installed and it's the latest version.
Upvotes: 0
Views: 146
Reputation: 6129
You need to add npm to your path, in windows you can do it like that :
setx PATH="%PATH%;C:\npmInsFolder"
In linux:
PATH=$PATH:~/opt/npmInsFolder
or:
PATH=~/opt/npmInsFolder:$PATH
Upvotes: 1