From 2a3ddf649c0f28b46ddbc5bbfe33137b68c94186 Mon Sep 17 00:00:00 2001 From: Joe Lanman Date: Wed, 30 Jun 2021 12:51:38 +0100 Subject: [PATCH] run gulp using the node executable some machines do not have permission to run gulp directly --- CHANGELOG.md | 4 ++++ start.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 039f08222a..d35736f828 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Unreleased +## Fixes + +- [Pull request #1039: Run Gulp using the Node executable to fix permissions problem](https://github.com/alphagov/govuk-prototype-kit/pull/1039) + # 9.14.0 (Feature release) ## New features diff --git a/start.js b/start.js index 9bb0a29760..4bdbd315ad 100644 --- a/start.js +++ b/start.js @@ -68,7 +68,7 @@ function runGulp () { const spawn = require('cross-spawn') process.env.FORCE_COLOR = 1 - var gulp = spawn('./node_modules/.bin/gulp', ['--log-level', '-L']) + var gulp = spawn('node', ['./node_modules/gulp/bin/gulp.js', '--log-level', '-L']) gulp.stdout.pipe(process.stdout) gulp.stderr.pipe(process.stderr) process.stdin.pipe(gulp.stdin)