Home
Support Forums

Build and Deploy Issue - Build was terminated: Build script returned non-zero exit code: 1

Site name: blissful-golick-fe0d65.netlify.app

Build log is long…

my repo: GitHub - carandreyn/atlas_email: test

I’m sure I need to upgrade a bunch of stuff, but im not really sure how.

my package.json:


{
“name”: “foundation-emails-template”,
“version”: “1.0.0”,
“description”: “Basic template for a Foundation for Emails project.”,
“repository”: “zurb/foundation-emails-template”,
“main”: “gulpfile.babel.js”,
“scripts”: {
“start”: “gulp”,
“build”: “gulp --production”,
“zip”: “gulp zip --production”,
“litmus”: “gulp litmus --production”,
“mail”: “gulp mail --production”
},
“author”: “ZURB foundation@zurb.com”,
“license”: “MIT”,
“dependencies”: {
“foundation-emails”: “^2.2.1”
},
“devDependencies”: {
“babel-core”: “^6.3.26”,
“babel-preset-es2015”: “^6.3.13”,
“babel-register”: “^6.7.2”,
“beepbeep”: “^1.2.0”,
“browser-sync”: “^2.11.0”,
“colors”: “^1.1.2”,
“gulp”: “^4.0.0”,
“gulp-awspublish”: “^3.0.1”,
“gulp-cli”: “^1.1.0”,
“gulp-html-src”: “^1.0.0”,
“gulp-htmlmin”: “^1.1.1”,
“gulp-if”: “^2.0.0”,
“gulp-imagemin”: “^2.4.0”,
“gulp-inline-css”: “^3.0.0”,
“gulp-litmus”: “0.0.7”,
“gulp-load-plugins”: “^1.1.0”,
“gulp-mail”: “^0.1.1”,
“gulp-rename”: “^1.2.2”,
“gulp-replace”: “^0.5.4”,
“gulp-sass”: “^3.1.0”,
“gulp-sourcemaps”: “^1.6.0”,
“gulp-uncss”: “^1.0.1”,
“gulp-zip”: “^3.2.0”,
“inky”: “^1.3.6”,
“lazypipe”: “^1.0.1”,
“merge-stream”: “^1.0.0”,
“panini”: “^1.3.0”,
“rimraf”: “^2.3.3”,
“siphon-media-query”: “^1.0.0”,
“yargs”: “^4.1.0”
},
“babel”: {
“presets”: [
“es2015”
]
}
}

Hi @carandreyn

This is the biggest issue I believe.

If you wish to upgrade your packages (there are a number of old ones) check out Update all the Node.js dependencies to their latest version.

I was able to get a build running by downgrading the version of node in the build system to v14.17.6 using the NODE_VERSION environment variable however it seemed to get stuck at

[Browsersync] Serving files from: dist

What is happening if gulp (via npm run build) is trying to start a server instance to watch for changes in files. What is meant to happen is your SSG will build all the pages for your site then Netlify will deploy those built files.

Unfortunately I am unable to successfully build locally either.

1 Like

I was able to get your code deployed. I changed line 31 in gulpfile.babel.js from

  gulp.series('build', server, watch));

to

  gulp.series('build'));

This still requires changing the node.js version as mentioned in my previous post.

1 Like

Hey it worked, thank you very much!