Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updating Gulp plugins

When starting a project using a Yeoman generator, say, generator-gulp-webapp, you get a package.json file with all the dependencies.

Is it recommended to update all or any of these dependencies (ex: gulp-useref, gulp-ruby-sass, gulp-bower-files, etc)? What are the implications of doing or not doing so?

like image 842
zok Avatar asked Nov 19 '14 18:11

zok


People also ask

What is a gulp plugin?

Gulp plugins are Node Transform Streams that encapsulate common behavior to transform files in a pipeline - often placed between src() and dest() using the . pipe() method. They can change the filename, metadata, or contents of every file that passes through the stream.

Is gulp deprecated?

`gulp-util` is deprecated and their is a new version with upgrade instructions.


Video Answer


1 Answers

It is always necessary to update your plugins, as the syntax keeps changing as and then you keep going ahead.

Here’s what I recommend to fix it:

1) npm install -g npm-check-updates

2) npm-check-updates -u

3) rm -fr node_modules

4) npm install

Basically this installs npm-check-updates globally, runs it against your package.json and updates the dependency versions. Then you just delete the node modules folder and re-install.

like image 184
aneeshjajodia Avatar answered Sep 18 '22 14:09

aneeshjajodia