Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

json

html

gulp

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.

like image 671
the12 Avatar asked Jul 27 '16 21:07

the12


People also ask

What is gulp-cli version?

gulp is a JavaScript library. It lets you use gulp from JavaScript code. gulp-cli is a utility program that lets you access gulp from your shell. Follow this answer to receive notifications.

How do I update gulp to latest version?

Upgrading gulp to v4 Once globally installed, gulp v4 will then need to be installed on a per-project basis. If in your package. json file gulp is listed under dependencies , then replace the --save-dev with just --save .

What version of Node works with gulp?

Gulp 3.9. 1 will work with Node 8 (latest noded 8 is 8.17. 0) and with nothing newer.

What is gulp and npm?

gulp: The streaming build system. Build system automating tasks: minification and copying of all JavaScript files, static images. More capable of watching files to automatically rerun the task when a file changes; npm: The package manager for JavaScript. npm is the command-line interface to the npm ecosystem.


2 Answers

Simply use: gulp -v

From the docs:

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

like image 164
Plasma Avatar answered Oct 13 '22 00:10

Plasma


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
like image 35
jbyrd Avatar answered Oct 13 '22 01:10

jbyrd