-1

when i run gulp in cmd it says gulp: command not found

though when i checked

npm root (Path Local)

/var/www/html/gus/node_modules

npm root -g (Path Global)

/Users/zohaib/npm-global/lib/node_modules

i followed these rules though these are for OsX and im having ubuntu 16.04

3

1 Answer 1

0

To install gulp in Ubuntu, mentioned below are the steps:

  1. sudo apt-get install node
  2. sudo apt-get install npm
  3. sudo npm install --global gulp
  4. sudo apt-get install nodejs-legacy
  5. sudo npm install

Then run gulp.

Sign up to request clarification or add additional context in comments.

2 Comments

i figured out this issue and re install the node and it worked like a charm
My mac was throwing the same error, following command resolved it - "sudo npm install --global gulp"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.