According to the Gulp.js documentation, in order to be able to use Gulp you have to install it globally:
npm install --global gulp
and locally:
npm install --save-dev gulp
And the local installation is essential, because without doing npm install gulp
or npm link gulp
in your project's directory Gulp just throws a completely random exception: TypeError: Invalid Version: undefined
.
I'm wondering - why Gulp requires local installation? What is the point in keeping copies of Gulp inside every project's folder (apart from wasting hard drive space)? And is there any way to install and use Gulp only globally?