Home
Support Forums

Running into "non-zero exit code: 1" problem

First off hey, first post!

I’ve been trying to figure this out but it’s getting frustrating. I’m not exactly sure what to do at this point. Any and all suggestions are appreciated at this point.

2:16:45 PM: Build ready to start
2:16:47 PM: build-image version: 081db65c3e4ce8423fedb40e7689a87de6f84667
2:16:47 PM: build-image tag: v4.3.1
2:16:47 PM: buildbot version: 97a6b2cacb208d0706f4c310f966af375d45e5e6
2:16:47 PM: Building without cache
2:16:47 PM: Starting to prepare the repo for build
2:16:47 PM: No cached dependencies found. Cloning fresh repo
2:16:47 PM: git clone https://github.com/avisjrjr/portfolio
2:16:48 PM: Preparing Git Reference refs/heads/main
2:16:48 PM: Parsing package.json dependencies
2:16:49 PM: Starting build script
2:16:49 PM: Installing dependencies
2:16:49 PM: Python version set to 2.7
2:16:50 PM: v16.9.1 is already installed.
2:16:50 PM: Now using node v16.9.1 (npm v7.21.1)
2:16:50 PM: Started restoring cached build plugins
2:16:50 PM: Finished restoring cached build plugins
2:16:51 PM: Attempting ruby version 2.7.2, read from environment
2:16:52 PM: Using ruby version 2.7.2
2:16:52 PM: Using PHP version 8.0
2:16:52 PM: Started restoring cached node modules
2:16:52 PM: Finished restoring cached node modules
2:16:52 PM: Installing NPM modules using NPM version 7.21.1
2:16:54 PM: npm ERR! code ERESOLVE
2:16:54 PM: npm ERR! ERESOLVE unable to resolve dependency tree
2:16:54 PM: npm ERR!
2:16:54 PM: npm ERR! While resolving: simplefolio@1.0.1
2:16:54 PM: npm ERR! Found: webpack@5.53.0
2:16:54 PM: npm ERR! node_modules/webpack
2:16:54 PM: npm ERR!   dev webpack@"^5.40.0" from the root project
2:16:54 PM: npm ERR!
2:16:54 PM: npm ERR! Could not resolve dependency:
2:16:54 PM: npm ERR! peer webpack@"^4.0.0" from optimize-css-assets-webpack-plugin@6.0.1
2:16:54 PM: npm ERR! node_modules/optimize-css-assets-webpack-plugin
2:16:54 PM: npm ERR!   dev optimize-css-assets-webpack-plugin@"^6.0.1" from the root project
2:16:54 PM: npm ERR!
2:16:54 PM: npm ERR! Fix the upstream dependency conflict, or retry
2:16:54 PM: npm ERR! this command with --force, or --legacy-peer-deps
2:16:54 PM: npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
2:16:54 PM: npm ERR!
2:16:54 PM: npm ERR! See /opt/buildhome/.npm/eresolve-report.txt for a full report.
2:16:54 PM: npm ERR! A complete log of this run can be found in:
2:16:54 PM: npm ERR!     /opt/buildhome/.npm/_logs/2021-09-21T18_16_54_608Z-debug.log
2:16:54 PM: Error during NPM install
2:16:54 PM: Build was terminated: Build script returned non-zero exit code: 1
2:16:54 PM: Creating deploy upload records
2:16:54 PM: Failing build: Failed to build site
2:16:54 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
2:16:54 PM: Finished processing build request in 7.731536947s

Hi @avisjrjr

Have a read over this topic which appears the same issue you are currently facing.