Loading...
How to install Gulp.js on Ubuntu 20.04 - Knowledgebase

How to install Gulp.js on Ubuntu 20.04 Print

  • gulp, javascript, java, ubuntu, js, node
  • 2

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?

« Back