Build Errors related to Gulp for minifying CSS + JS

I am a designer with enough development skills to be scary… but not a super savvy CLI guy… and I’m banging my head against the wall here! Trying to customize markup on a casper theme for a Ghost Pro hosted site

Jamess-Mac-mini casper % npm run pretest

casper@4.0.5 pretest /Users/blackwellspace/code/site/versions/4.5.0/content/themes/casper
gulp build

const pump = require(‘pump’);

SyntaxError: Identifier ‘pump’ has already been declared
at wrapSafe (internal/modules/cjs/loader.js:979:16)
at Module._compile (internal/modules/cjs/loader.js:1027:27)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at requireOrImport (/usr/local/lib/node_modules/gulp/node_modules/gulp-cli/lib/shared/require-or-import.js:19:11)
at execute (/usr/local/lib/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^4.0.0/index.js:37:3)
at Liftoff.handleArguments (/usr/local/lib/node_modules/gulp/node_modules/gulp-cli/index.js:211:24)
npm ERR! errno 1
npm ERR! casper@4.0.5 pretest: gulp build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the casper@4.0.5 pretest script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/blackwellspace/.npm/_logs/2021-05-13T00_04_47_912Z-debug.log

  • What steps could someone else take to reproduce the issue you’re having? I followed the guide step by step 4-5 times now… any suggestions and help would be much appreciated!