I switched one of my projects to gulp 4 by uninstalling the old gulp and installing v4 via:
npm install gulpjs/gulp.git#4.0 --save-dev
In my package.json, under the devDependencies property I have the following entry:
"gulp": "gulpjs/gulp#4.0"
When I ran npm-shrinkwrap I receive the following warning:
npm-shrinkwrap --dev --registries=artifactory:8081
WARN: Expected the git dependency gulp to have a valid version tag;
instead I found 4.0 for the dependency gulpjs/gulp#4.0
wrote npm-shrinkwrap.json