Menu icon Foundation
Gulp Custom Task - Command Not Found

I've tried to add a gulp task to foundation for sites to generate a sitemap using gulp sitemaps.

 

I have the Node module installed and referenced at the top and then I have the gulp task. If I try and run "gulp sitemaptask" or "foundation sitemaptask" I get the error "-bash: gulp: command not found".

Can anyone see where I'm going wrong please?

 

import sitemap  from 'gulp-sitemap';

....

gulp.task('sitemaptask', () => {
	//sitemap
	console.log('Build Sitemap');
	
    gulp.src(PATHS.dist, {
        read: false
    })
    .pipe(sitemap({
        siteUrl: 'http://www.andrewcetnarskyj.co.uk'
    }))
    .pipe(gulp.dest(PATHS.dist));

});

gulpFoundation for Sitesjavascriptcustom

I've tried to add a gulp task to foundation for sites to generate a sitemap using gulp sitemaps.

 

I have the Node module installed and referenced at the top and then I have the gulp task. If I try and run "gulp sitemaptask" or "foundation sitemaptask" I get the error "-bash: gulp: command not found".

Can anyone see where I'm going wrong please?

 

import sitemap  from 'gulp-sitemap';

....

gulp.task('sitemaptask', () => {
	//sitemap
	console.log('Build Sitemap');
	
    gulp.src(PATHS.dist, {
        read: false
    })
    .pipe(sitemap({
        siteUrl: 'http://www.andrewcetnarskyj.co.uk'
    }))
    .pipe(gulp.dest(PATHS.dist));

});