Gulp and gulp-inject: cannot find any-promise implementation

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  

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s