How To Install Gulp with Npm

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/how-to-install-gulp-with-npm/
PINTEREST
PINTEREST
INSTAGRAM

Gulp is a streaming build system mainly used by Javascript, Typescript application developers. We may need to install gulp from npm .

Install NPM

In order to install gulp we will install Nodejs Package Manager. Following tutorial explains it in detail.

http://www.poftut.com/install-nodejs-ubuntu-debian-fedora-centos-redhat/

Install Gulp with Npm

The best and practical way to install Gulp is to install with npm. We will use Nodejs Package Manager or Npm. We will use npm install command with --global and gulp-cli options. Installing globally will requires root privileges.

Install Gulp with Npm

Install Gulp with Npm

Install Gulp In Specific Project Dependency

another installation method is installing gulp in a project scope. This will not require any privilege because we will not change any system related directory. We will provide --save-dev options for this.

Test Gulp

We can test installation of Gulp by creating a test file named gulpfile.js and put following content.

and then run gulp command in the current working directory.

Test Gulp

Test Gulp

We can see from output that Gulp is installed successfully

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/how-to-install-gulp-with-npm/
PINTEREST
PINTEREST
INSTAGRAM

LEARN MORE  How To Install Nodejs Into Ubuntu, Debian, Fedora, CentOS, RedHat

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)