I have a gulpfile.js that runs through perfectly when typing gulp into the commandline.
gulp
All the gulp bash command really does is calling the sp
In your package.json add the following:
"scripts": { "gulp": "node ./node_modules/gulp/bin/gulp.js " }
and run from command line by typing npm run gulp.
This removes the dependency on having gulp globally installed