var inject = require('gulp-inject');
After the installation of gulp-inject the require shown above led to an error:
Cannot find any-promise implementation not global promise. You must install polyfill …
It effectively asks you to install a promise-library implementation which for some reason has not been installed as a dependency along with gulp-inject. So the installation of the Bluebird promise library solves the problem.
npm install --save bluebird