Gulp has removed the 4.0 branch from their GitHub repository, so the previous way of installing using npm install gulpjs/gulp.git#4.0 --save-dev no longer works.
They state in their README that the correct way to install gulp 4.0 is to run the command: