the12
the12

Reputation: 2425

Is there any way to check what gulp version you have installed?

Is there any way to check what gulp version you have installed and also what version of gulp is being offered by the website? I've searched online, and looked at the gulp website, but cannot find the version I need to put in my JSON file.

Upvotes: 41

Views: 89576

Answers (2)

jbyrd
jbyrd

Reputation: 5615

gulp -v will not work if you don't have gulp-cli installed (you will get the error 'gulp' is not recognized as an internal or external command, operable program or batch file.).

So 2 options:

  1. First run npm -g install gulp-cli then run gulp -v
  2. Alternatively, you can just run npm list gulp

Upvotes: 20

Plasma
Plasma

Reputation: 2449

Simply use: gulp -v

From the docs:

https://github.com/gulpjs/gulp/blob/master/docs/CLI.md

Upvotes: 60

Related Questions