1p4O3lt34IgCvNzMTEFd47kNlNcYuF-xfxhdMMzgEHw 147734CE319359F2485283B062A27DE1

ARCHIVE: November, 2017

How to automatically install gulp dependencies

I created a website where I’m using gulp to create a minified version and had to switch to another computer. For whatever reason, gulp install wouldn’t install the dependencies automatically, even when using the “npm-install-missing” plugin.

Add this script to the beginning of your gulpfile.js before the requirements, and when you run gulp, it will install the dependencies automatically. Be aware you’ll need to rerun your gulp command after the script completes.

 

There are no more results.