Home
Support Forums

Error with gulp-shell and node version - bioth have been updated?

12:40:25 PM: Build ready to start
12:40:27 PM: build-image version: 3bcb38c35508b42e9121d4badfe6d8c66fd7a3f0
12:40:27 PM: build-image tag: v4.3.2
12:40:27 PM: buildbot version: 8d750ab4820989d4780150147492cfe1b146be17
12:40:27 PM: Fetching cached dependencies
12:40:27 PM: Failed to fetch cache, continuing with build
12:40:27 PM: Starting to prepare the repo for build
12:40:28 PM: No cached dependencies found. Cloning fresh repo
12:40:28 PM: git clone git@github.com:cathydutton/cathydutton.co.uk
12:40:31 PM: Preparing Git Reference refs/heads/master
12:40:32 PM: Parsing package.json dependencies
12:40:32 PM: Different functions path detected, going to use the one specified in the Netlify configuration file: β€˜functions’ versus β€˜β€™ in the Netlify UI
12:40:32 PM: Different build command detected, going to use the one specified in the Netlify configuration file: β€˜gulp production --prod’ versus β€˜yarn run prod’ in the Netlify UI
12:40:33 PM: Starting build script
12:40:33 PM: Installing dependencies
12:40:33 PM: Python version set to 2.7
12:40:33 PM: Downloading and installing node v8.17.0…
12:40:34 PM: Downloading https://nodejs.org/dist/v8.17.0/node-v8.17.0-linux-x64.tar.xz…
12:40:34 PM: Computing checksum with sha256sum
12:40:34 PM: Checksums matched!
12:40:36 PM: Now using node v8.17.0 (npm v6.13.4)
12:40:36 PM: Started restoring cached build plugins
12:40:36 PM: Finished restoring cached build plugins
12:40:36 PM: Attempting ruby version 2.7.2, read from environment
12:40:38 PM: Using ruby version 2.7.2
12:40:38 PM: Using PHP version 8.0
12:40:38 PM: Started restoring cached node modules
12:40:38 PM: Finished restoring cached node modules
12:40:38 PM: Installing NPM modules using NPM version 6.13.4
12:41:15 PM: npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I’ll try to do my best with it!
12:41:15 PM: > phantomjs-prebuilt@2.1.16 install /opt/build/repo/node_modules/phantomjs-prebuilt
12:41:15 PM: > node install.js
12:41:16 PM: PhantomJS not found on PATH
12:41:16 PM: Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
12:41:16 PM: Saving to /opt/buildhome/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
12:41:16 PM: Receiving…
12:41:16 PM: Received 22866K total.
12:41:16 PM: Extracting tar contents (via spawned process)
12:41:20 PM: Removing /opt/build/repo/node_modules/phantomjs-prebuilt/lib/phantom
12:41:20 PM: Copying extracted folder /opt/buildhome/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1635421276713/phantomjs-2.1.1-linux-x86_64 β†’ /opt/build/repo/node_modules/phantomjs-prebuilt/lib/phantom
12:41:21 PM: Writing location.js file
12:41:21 PM: Done. Phantomjs binary available at /opt/build/repo/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
12:41:21 PM: > ejs@2.7.4 postinstall /opt/build/repo/node_modules/ejs
12:41:21 PM: > node ./postinstall.js
12:41:22 PM: > gifsicle@5.2.1 postinstall /opt/build/repo/node_modules/gifsicle
12:41:22 PM: > node lib/install.js
12:41:22 PM: gifsicle pre-build test passed successfully
12:41:22 PM: > mozjpeg@6.0.1 postinstall /opt/build/repo/node_modules/mozjpeg
12:41:22 PM: > node lib/install.js
12:41:22 PM: :heavy_check_mark: mozjpeg pre-build test passed successfully
12:41:23 PM: > optipng-bin@6.0.0 postinstall /opt/build/repo/node_modules/optipng-bin
12:41:23 PM: > node lib/install.js
12:41:23 PM: :heavy_check_mark: optipng pre-build test passed successfully
12:41:26 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/glob-watcher/node_modules/fsevents):
12:41:26 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {β€œos”:β€œdarwin”,β€œarch”:β€œany”} (current: {β€œos”:β€œlinux”,β€œarch”:β€œx64”})
12:41:26 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
12:41:26 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {β€œos”:β€œdarwin”,β€œarch”:β€œany”} (current: {β€œos”:β€œlinux”,β€œarch”:β€œx64”})
12:41:26 PM: added 2010 packages from 924 contributors and audited 2018 packages in 46.982s
12:41:28 PM: 103 packages are looking for funding
12:41:28 PM: run npm fund for details
12:41:28 PM: found 40 vulnerabilities (24 moderate, 15 high, 1 critical)
12:41:28 PM: run npm audit fix to fix them, or npm audit for details
12:41:28 PM: NPM modules installed
12:41:29 PM: Started restoring cached go cache
12:41:29 PM: Finished restoring cached go cache
12:41:29 PM: Installing Go version 1.10
12:41:33 PM: unset GOOS;
12:41:33 PM: unset GOARCH;
12:41:33 PM: export GOROOT=’/opt/buildhome/.gimme_cache/versions/go1.10.linux.amd64’;
12:41:33 PM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.10.linux.amd64/bin:${PATH}";
12:41:33 PM: go version >&2;
12:41:33 PM: export GIMME_ENV="/opt/buildhome/.gimme_cache/env/go1.10.linux.amd64.env"
12:41:33 PM: go version go1.10 linux/amd64
12:41:33 PM: Installing missing commands
12:41:33 PM: Verify run directory
12:41:35 PM: ​
12:41:35 PM: ────────────────────────────────────────────────────────────────
12:41:35 PM: Netlify Build
12:41:35 PM: ────────────────────────────────────────────────────────────────
12:41:35 PM: ​
12:41:35 PM: ❯ Version
12:41:35 PM: @netlify/build 18.19.1
12:41:35 PM: ​
12:41:35 PM: ❯ Flags
12:41:35 PM: baseRelDir: false
12:41:35 PM: buildId: 617a8c29d05481000885b5f1
12:41:35 PM: deployId: 617a8c29d05481000885b5f3
12:41:35 PM: ​
12:41:35 PM: ❯ Current directory
12:41:35 PM: /opt/build/repo
12:41:35 PM: ​
12:41:35 PM: ❯ Config file
12:41:35 PM: /opt/build/repo/netlify.toml
12:41:35 PM: ​
12:41:35 PM: ❯ Context
12:41:35 PM: production
12:41:35 PM: ​
12:41:35 PM: ────────────────────────────────────────────────────────────────
12:41:35 PM: 1. build.command from netlify.toml
12:41:35 PM: ────────────────────────────────────────────────────────────────
12:41:35 PM: ​
12:41:35 PM: $ gulp production --prod
12:41:37 PM: [11:41:37] Using gulpfile /opt/build/repo/gulpfile.js
12:41:37 PM: [11:41:37] Starting β€˜production’…
12:41:37 PM: [11:41:37] Starting β€˜test’…
12:41:37 PM: [11:41:37] Starting β€˜cssLint’…
12:41:37 PM: [11:41:37] Starting β€˜jsTest’…
12:41:37 PM: [11:41:37] Starting β€˜jsLint’…
12:41:37 PM: [11:41:37] Finished β€˜jsTest’ after 77 ms
12:41:37 PM: [11:41:37] Finished β€˜jsLint’ after 79 ms
12:41:37 PM: [11:41:37] gulp-postcss: 1-settings/fonts.css
12:41:37 PM: stylelint: /opt/build/repo/src/site/_includes/css/1-settings/fonts.css:46:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: [11:41:38] gulp-postcss: 5-base/typography.css
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/5-base/typography.css:49:1: Unexpected duplicate selector β€œh2”, first used at line 35 (no-duplicate-selectors)
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/5-base/typography.css:93:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: [11:41:38] gulp-postcss: 6-components/buttons.css
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/buttons.css:67:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/buttons.css:68:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/buttons.css:69:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/buttons.css:70:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/buttons.css:71:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/buttons.css:72:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/buttons.css:73:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/buttons.css:74:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/buttons.css:75:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/buttons.css:76:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/buttons.css:77:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/buttons.css:78:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: [11:41:38] gulp-postcss: 6-components/cards.css
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/cards.css:68:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: [11:41:38] gulp-postcss: 6-components/pagination.css
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/pagination.css:85:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/pagination.css:86:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: [11:41:38] gulp-postcss: 6-components/profile.css
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/profile.css:71:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/profile.css:72:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/profile.css:73:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: [11:41:38] gulp-postcss: 6-components/range-input.css
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/range-input.css:17:3: Unexpected duplicate selector β€œ.slider”, first used at line 13 (no-duplicate-selectors)
12:41:38 PM: [11:41:38] gulp-postcss: 6-components/webmentions.css
12:41:38 PM: stylelint: /opt/build/repo/src/site/_includes/css/6-components/webmentions.css:90:1: Expected no more than 2 empty lines (max-empty-lines)
12:41:38 PM: [11:41:38] Finished β€˜cssLint’ after 415 ms
12:41:38 PM: [11:41:38] Finished β€˜test’ after 416 ms
12:41:38 PM: [11:41:38] Starting β€˜build’…
12:41:38 PM: [11:41:38] Starting β€˜generate’…
12:41:38 PM: Eleventy requires Node 10. You will need to upgrade Node to use Eleventy!
12:41:38 PM: [11:41:38] β€˜generate’ errored after 89 ms
12:41:38 PM: [11:41:38] Error in plugin β€œgulp-shell”
12:41:38 PM: Message:
12:41:38 PM: Command eleventy failed with exit code 1
12:41:38 PM: [11:41:38] β€˜build’ errored after 91 ms
12:41:38 PM: [11:41:38] β€˜production’ errored after 508 ms
12:41:38 PM: ​
12:41:38 PM: ────────────────────────────────────────────────────────────────
12:41:38 PM: β€œbuild.command” failed
12:41:38 PM: ────────────────────────────────────────────────────────────────
12:41:38 PM: ​
12:41:38 PM: Error message
12:41:38 PM: Command failed with exit code 1: gulp production --prod
12:41:38 PM: ​
12:41:38 PM: Error location
12:41:38 PM: In build.command from netlify.toml:
12:41:38 PM: gulp production --prod
12:41:38 PM: ​
12:41:38 PM: Resolved config
12:41:38 PM: build:
12:41:38 PM: command: gulp production --prod
12:41:38 PM: commandOrigin: config
12:41:38 PM: environment:
12:41:38 PM: - WEBMENTION_IO_TOKEN
12:41:38 PM: publish: /opt/build/repo/dist
12:41:38 PM: publishOrigin: config
12:41:38 PM: functionsDirectory: /opt/build/repo/functions
12:41:38 PM: Caching artifacts
12:41:38 PM: Started saving node modules
12:41:38 PM: Finished saving node modules
12:41:38 PM: Started saving build plugins
12:41:38 PM: Finished saving build plugins
12:41:38 PM: Started saving pip cache
12:41:38 PM: Finished saving pip cache
12:41:38 PM: Started saving emacs cask dependencies
12:41:38 PM: Finished saving emacs cask dependencies
12:41:38 PM: Started saving maven dependencies
12:41:38 PM: Finished saving maven dependencies
12:41:38 PM: Started saving boot dependencies
12:41:38 PM: Finished saving boot dependencies
12:41:38 PM: Started saving rust rustup cache
12:41:38 PM: Finished saving rust rustup cache
12:41:38 PM: Started saving go dependencies
12:41:40 PM: Finished saving go dependencies
12:41:42 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:41:42 PM: Creating deploy upload records
12:41:42 PM: Failing build: Failed to build site
12:41:42 PM: Failed during stage β€˜building site’: Build script returned non-zero exit code: 2
12:41:42 PM: Finished processing build request in 1m15.116883504s

Somehow you’re still using Node 8 which is causing problems. Netlify uses Node 16 by default on the latest build image, so you might have overridden that somewhere like environment variables.

My build file has this NODE_ENV = β€œ14.17.6”. I cant find anywhere else I can update?

Do you have a site name to share?

Yes it’s cathy-dutton

Are you referring to this line:

Or have you set 14.17.6 somewhere else?

Yeah that’s the line it was 14.17.6 in a previous build

That’s not the correct syntax.

It should be:

[build]
  command = "something"

[build.environment]
  NODE_VERSION = "14.17.6"
2 Likes

That worked Thank you :slight_smile: