Prerequisites

Step 1 — Upgrade your system

$ sudo apt-get upgrade

Step 2 — Install Node.js

$ curl -fsSL https://deb.nodesource.com/setup_17.x | sudo -E bash -
$ sudo apt-get install -y nodejs
$ node --version

Step 4 — Create a sample application with NPM

$ mkdir [app name]
$ cd [app name]
$ npm init

Step 5 — Install Gulp.js

$ npm install -g gulp-cli
$ cd /root/[app name]
$ npm install --save-dev gulp
$ gulp --version

Step — Create Gulp Application

$ nano /root/[app name]/gulpfile.js
var gulp = require('gulp');

gulp.task('hello', function(done) {
console.log('Hello World!!!');
done();
});
$ gulp hello
Was this answer helpful? 2 Users Found This Useful (4 Votes)