Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How to install version 4 of gulp js?


Asked by Cynthia Morgan on Dec 04, 2021 FAQ



Gulp JS version 4 comes in two parts, a command-line interface called Gulp CLI which you want to install globally by running npm install --global gulp-cli. There is also a local version of Gulp JS that we will install in our project. Run npm install --save-dev gulp@4 to install it into your project development dependencies.
Indeed,
If you have installed an earlier version of Gulp JS, you will need to remove it by running npm uninstall --global gulp. Gulp 4 comes in two parts. A command-line interface called Gulp CLI which we want to install globally by running npm install --global gulp-cli.
Thereof, This was partly owing to ongoing development and because Gulp.js 4 gulpfile.js configuration files are not compatible with those developed for version 3. On December 10, 2018, Gulp.js 4.0 was announced as the default and published to npm. Anyone using npm install gulp on a new project will receive version 4.
Consequently,
A command-line interface called Gulp CLI which we want to install globally by running npm install --global gulp-cli. There is also a local version of Gulp JS that we will install in our project. Run npm install --save-dev gulp@4 to install it into your project development dependencies.
Accordingly,
Update your package.json dependencies as shown above, then run npm install to upgrade. You can also update the command-line interface using npm i gulp-cli -g, although this hasn’t changed at the time of writing. To check the installation, enter gulp -v at the command line: