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?
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.
`gulp-util` is deprecated and their is a new version with upgrade instructions.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With