CI= npm run build

I’m having an issue with deploying the website I’m working on.

I tried with “CI= npm run build”

below is the log:

2:16:45 PM: Build ready to start
2:16:49 PM: build-image version: d7b3dbfb0846505993c9a131894d1858074c90b4 (focal)
2:16:49 PM: build-image tag: v4.10.1
2:16:49 PM: buildbot version: 7e449fda4d95fa42451b88186ca7054116649237
2:16:49 PM: Fetching cached dependencies
2:16:50 PM: Starting to download cache of 135.5MB
2:16:51 PM: Finished downloading cache in 1.006895907s
2:16:51 PM: Starting to extract cache
2:16:52 PM: Finished extracting cache in 1.663262052s
2:16:52 PM: Finished fetching cache in 2.721374851s
2:16:52 PM: Starting to prepare the repo for build
2:16:53 PM: Preparing Git Reference refs/heads/main
2:16:53 PM: Parsing package.json dependencies
2:16:54 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'client' versus '' in the Netlify UI
2:16:54 PM: Starting build script
2:16:54 PM: Installing dependencies
2:16:54 PM: Python version set to 2.7
2:16:54 PM: Started restoring cached node version
2:16:55 PM: Finished restoring cached node version
2:16:55 PM: v16.17.0 is already installed.
2:16:56 PM: Now using node v16.17.0 (npm v8.15.0)
2:16:56 PM: Started restoring cached build plugins
2:16:56 PM: Finished restoring cached build plugins
2:16:56 PM: Attempting ruby version 2.7.2, read from environment
2:16:56 PM: Using ruby version 2.7.2
2:16:56 PM: Using PHP version 8.0
2:16:57 PM: No npm workspaces detected
2:16:57 PM: Started restoring cached node modules
2:16:57 PM: Finished restoring cached node modules
2:16:57 PM: Started restoring cached go cache
2:16:57 PM: Finished restoring cached go cache
2:16:57 PM: Installing Go version 1.17 (requested 1.17)
2:17:01 PM: unset GOOS;
2:17:01 PM: unset GOARCH;
2:17:01 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.17.linux.amd64';
2:17:01 PM: export PATH="/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}";
2:17:01 PM: go version >&2;
2:17:01 PM: export GIMME_ENV="/opt/buildhome/.gimme/env/go1.17.linux.amd64.env"
2:17:01 PM: go version go1.17 linux/amd64
2:17:01 PM: Installing missing commands
2:17:01 PM: Verify run directory
2:17:02 PM: ​
2:17:02 PM: ────────────────────────────────────────────────────────────────
2:17:02 PM:   Netlify Build                                                 
2:17:02 PM: ────────────────────────────────────────────────────────────────
2:17:02 PM: ​
2:17:02 PM: ❯ Version
2:17:02 PM:   @netlify/build 27.18.1
2:17:02 PM: ​
2:17:02 PM: ❯ Flags
2:17:02 PM:   baseRelDir: true
2:17:02 PM:   buildId: 63245b1da7a53628f11b86a2
2:17:02 PM:   deployId: 63245b1da7a53628f11b86a4
2:17:02 PM: ​
2:17:02 PM: ❯ Current directory
2:17:02 PM:   /opt/build/repo/client
2:17:02 PM: ​
2:17:02 PM: ❯ Config file
2:17:02 PM:   No config file was defined: using default values.
2:17:02 PM: ​
2:17:02 PM: ❯ Context
2:17:02 PM:   production
2:17:02 PM: ​
2:17:02 PM: ────────────────────────────────────────────────────────────────
2:17:02 PM:   1. Build command from Netlify app                             
2:17:02 PM: ────────────────────────────────────────────────────────────────
2:17:02 PM: ​
2:17:02 PM: $ CI= npm run build
2:17:02 PM: > client@0.1.0 build
2:17:02 PM: > react-scripts build
2:17:03 PM: Creating an optimized production build...
2:17:08 PM: Compiled with warnings.
2:17:08 PM: 
2:17:08 PM: [eslint]
2:17:08 PM: src/components/JobDetails.js
2:17:08 PM:   Line 15:34:  Using target="_blank" without rel="noreferrer" (which implies rel="noopener") is a security risk in older browsers: see https://mathiasbynens.github.io/rel-noopener/#recommendations  react/jsx-no-target-blank
2:17:08 PM: src/components/ListCompany.js
2:17:08 PM:   Line 32:7:  Using target="_blank" without rel="noreferrer" (which implies rel="noopener") is a security risk in older browsers: see https://mathiasbynens.github.io/rel-noopener/#recommendations  react/jsx-no-target-blank
2:17:08 PM: Creating deploy upload records
2:17:08 PM: src/pages/Home.js
2:17:08 PM:   Line 33:41:  Array.prototype.filter() expects a value to be returned at the end of arrow function  array-callback-return
2:17:08 PM: Search for the keywords to learn more about each warning.
2:17:08 PM: To ignore, add // eslint-disable-next-line to the line before.
2:17:08 PM: File sizes after gzip:
2:17:08 PM: Starting post processing
2:17:08 PM:   54.76 kB  build/static/js/main.ce73d22a.js
2:17:08 PM:   918 B     build/static/css/main.8ecbd2fd.css
2:17:08 PM: The project was built assuming it is hosted at /.
2:17:08 PM: Post processing - HTML
2:17:08 PM: You can control this with the homepage field in your package.json.
2:17:08 PM: The build folder is ready to be deployed.
2:17:08 PM: You may serve it with a static server:
2:17:08 PM:   npm install -g serve
2:17:08 PM: Post processing - header rules
2:17:08 PM:   serve -s build
2:17:08 PM: Find out more about deployment here:
2:17:08 PM:   https://cra.link/deployment
2:17:08 PM: Post processing - redirect rules
2:17:08 PM: ​
2:17:08 PM: (build.command completed in 5.6s)
2:17:08 PM: ​
2:17:08 PM: ────────────────────────────────────────────────────────────────
2:17:09 PM: Post processing done
2:17:08 PM:   2. Deploy site                                                
2:17:08 PM: ────────────────────────────────────────────────────────────────
2:17:08 PM: ​
2:17:08 PM: Starting to deploy site from 'client'
2:17:08 PM: Creating deploy tree 
2:17:08 PM: 0 new files to upload
2:17:08 PM: 0 new functions to upload
2:17:08 PM: Site deploy was successfully initiated
2:17:08 PM: ​
2:17:08 PM: (Deploy site completed in 294ms)
2:17:08 PM: ​
2:17:08 PM: ────────────────────────────────────────────────────────────────
2:17:08 PM:   Netlify Build Complete                                        
2:17:08 PM: ────────────────────────────────────────────────────────────────
2:17:08 PM: ​
2:17:08 PM: (Netlify Build completed in 5.9s)
2:17:08 PM: Caching artifacts
2:17:08 PM: Started saving node modules
2:17:08 PM: Finished saving node modules
2:17:08 PM: Started saving build plugins
2:17:08 PM: Finished saving build plugins
2:17:08 PM: Started saving pip cache
2:17:08 PM: Finished saving pip cache
2:17:08 PM: Started saving emacs cask dependencies
2:17:08 PM: Finished saving emacs cask dependencies
2:17:08 PM: Started saving maven dependencies
2:17:08 PM: Finished saving maven dependencies
2:17:08 PM: Started saving boot dependencies
2:17:08 PM: Finished saving boot dependencies
2:17:08 PM: Started saving rust rustup cache
2:17:08 PM: Finished saving rust rustup cache
2:17:08 PM: Started saving go dependencies
2:17:08 PM: Finished saving go dependencies
2:17:08 PM: Build script success
2:17:09 PM: Uploading Cache of size 135.5MB
2:17:11 PM: Finished processing build request in 22.083804747s
2:17:11 PM: Site is live ✨```

Hello @gal , based on the text client used as your publish directory and the text CI= npm run build used as your build command, I am assuming you are trying to deploy a site with the Hydrogen framework.
If that’s the case kindly note the build settings for Hydrogen below.

  • Build command: npm run build
  • Publish directory: dist/client

If the above is not the case kindly reply with more information or share a repository of the site you are trying to deploy.
Thanks.