AsherV
AsherV

Reputation: 37

Unable to find local grunt on Centos

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

Answers (1)

Shahar Hamuzim Rajuan
Shahar Hamuzim Rajuan

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

Related Questions