I'm writing a build script and it executes commands like:
npm install bower -g
npm install gulp -g
Installing these packages will take around 30-60 seconds on my machine even if they are already installed (e.g. installed from previous run of the build script).
I was thinking there could be a way to detect if bower or gulp are already installed and in that case skip the installation to save some time during the build.
Is something like that possible? How would I do that?
I'm using Windows and PowerShell, but I suppose some solutions in bash might be possible to port to Windows...