I am facing issue while deploying my site

compassionate-lalande-019303

[compassionate-lalande-019303.netlify.app] (https://compassionate-lalande-019303.netlify.app/)

Deploy log :

12:44:27 PM: Build ready to start
12:44:29 PM: build-image version: 7b53c5fc4445e3ec99d3949e5d1174a8c5be4f16
12:44:29 PM: build-image tag: v3.7.2
12:44:29 PM: buildbot version: a8df6d1263bb5bcc16f7b4ebb8e9a6cb904cfa8a
12:44:29 PM: Building without cache
12:44:29 PM: Starting to prepare the repo for build
12:44:30 PM: No cached dependencies found. Cloning fresh repo
12:44:30 PM: git clone https://github.com/6605295/portfolio
12:44:32 PM: Preparing Git Reference refs/heads/main
12:44:33 PM: Parsing package.json dependencies
12:44:35 PM: Starting build script
12:44:35 PM: Installing dependencies
12:44:35 PM: Python version set to 2.7
12:44:37 PM: v12.18.0 is already installed.
12:44:37 PM: Now using node v12.18.0 (npm v6.14.4)
12:44:37 PM: Started restoring cached build plugins
12:44:37 PM: Finished restoring cached build plugins
12:44:38 PM: Attempting ruby version 2.7.1, read from environment
12:44:39 PM: Using ruby version 2.7.1
12:44:39 PM: Using PHP version 5.6
12:44:39 PM: Started restoring cached node modules
12:44:39 PM: Finished restoring cached node modules
12:44:40 PM: Installing NPM modules using NPM version 6.14.4
12:45:19 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:45:19 PM: > tsparticles@1.26.3 install /opt/build/repo/node_modules/tsparticles
12:45:19 PM: > node ./scripts/install.js
12:45:19 PM: Thank you for installing tsParticles.
12:45:19 PM: Remember to checkout the official website https://particles.js.org to explore some samples.
12:45:19 PM: You can find more samples on CodePen too: https://codepen.io/collection/DPOage
12:45:19 PM: If you need documentation you can find it here: https://particles.js.org
12:45:19 PM: Remember to leave a star on the tsParticles repository if you like the project and want to support it: GitHub - matteobruni/tsparticles: tsParticles - Easily create highly customizable particles animations and use them as animated backgrounds for your website. Ready to use components available for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno.
12:45:19 PM: Found React installed. Please download react-tsparticles to use tsParticles with a component ready to use and easier to configure.
12:45:19 PM: You can read more about the component here: tsparticles/README.md at main · matteobruni/tsparticles · GitHub
12:45:19 PM: > @fortawesome/fontawesome-common-types@0.2.35 postinstall /opt/build/repo/node_modules/@fortawesome/fontawesome-common-types
12:45:19 PM: > node attribution.js
12:45:19 PM: Font Awesome Free 0.2.35 by @fontawesome - https://fontawesome.com
12:45:19 PM: License - Font Awesome (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
12:45:20 PM: > core-js@2.6.12 postinstall /opt/build/repo/node_modules/babel-runtime/node_modules/core-js
12:45:20 PM: > node -e “try{require(’./postinstall’)}catch(e){}”
12:45:20 PM: > core-js@3.8.2 postinstall /opt/build/repo/node_modules/core-js
12:45:20 PM: > node -e “try{require(’./postinstall’)}catch(e){}”
12:45:20 PM: > core-js-pure@3.8.2 postinstall /opt/build/repo/node_modules/core-js-pure
12:45:20 PM: > node -e “try{require(’./postinstall’)}catch(e){}”
12:45:20 PM: > ejs@2.7.4 postinstall /opt/build/repo/node_modules/ejs
12:45:20 PM: > node ./postinstall.js
12:45:21 PM: > @fortawesome/fontawesome-svg-core@1.2.35 postinstall /opt/build/repo/node_modules/@fortawesome/fontawesome-svg-core
12:45:21 PM: > node attribution.js
12:45:21 PM: Font Awesome Free 1.2.35 by @fontawesome - https://fontawesome.com
12:45:21 PM: License - Font Awesome (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
12:45:21 PM: > @fortawesome/free-solid-svg-icons@5.15.3 postinstall /opt/build/repo/node_modules/@fortawesome/free-solid-svg-icons
12:45:21 PM: > node attribution.js
12:45:21 PM: Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com
12:45:21 PM: License - Font Awesome (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
12:45:21 PM: > react-vertical-timeline-component@3.3.3 postinstall /opt/build/repo/node_modules/react-vertical-timeline-component
12:45:21 PM: > node lib/post_install.js
12:45:24 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
12:45:24 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:45:24 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
12:45:24 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:45:24 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.1 (node_modules/fsevents):
12:45:24 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.1: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
12:45:24 PM: added 1994 packages from 988 contributors and audited 2000 packages in 43.27s
12:45:26 PM: 129 packages are looking for funding
12:45:26 PM: run npm fund for details
12:45:26 PM: found 5 vulnerabilities (4 moderate, 1 high)
12:45:26 PM: run npm audit fix to fix them, or npm audit for details
12:45:26 PM: NPM modules installed
12:45:26 PM: Started restoring cached go cache
12:45:26 PM: Finished restoring cached go cache
12:45:26 PM: go version go1.14.4 linux/amd64
12:45:26 PM: go version go1.14.4 linux/amd64
12:45:26 PM: Installing missing commands
12:45:26 PM: Verify run directory
12:45:28 PM: ​
12:45:28 PM: ────────────────────────────────────────────────────────────────
12:45:28 PM: Netlify Build
12:45:28 PM: ────────────────────────────────────────────────────────────────
12:45:28 PM: ​
12:45:28 PM: ❯ Version
12:45:28 PM: @netlify/build 11.3.2
12:45:28 PM: ​
12:45:28 PM: ❯ Flags
12:45:28 PM: deployId: 608a63dbd4a25eb44c9a086f
12:45:28 PM: ​
12:45:28 PM: ❯ Current directory
12:45:28 PM: /opt/build/repo
12:45:28 PM: ​
12:45:28 PM: ❯ Config file
12:45:28 PM: No config file was defined: using default values.
12:45:28 PM: ​
12:45:28 PM: ❯ Context
12:45:28 PM: production
12:45:28 PM: ​
12:45:28 PM: ────────────────────────────────────────────────────────────────
12:45:28 PM: 1. Build command from Netlify app
12:45:28 PM: ────────────────────────────────────────────────────────────────
12:45:28 PM: ​
12:45:28 PM: $ npm run build
12:45:28 PM: > resume_starter_pack@0.1.0 build /opt/build/repo
12:45:28 PM: > react-scripts build
12:45:30 PM: Creating an optimized production build…
12:46:05 PM:
12:46:05 PM: Treating warnings as errors because process.env.CI = true.
12:46:05 PM: Most CI servers set it automatically.
12:46:05 PM:
12:46:05 PM: Failed to compile.
12:46:05 PM:
12:46:05 PM: src/App.js
12:46:05 PM: Line 6:8: ‘Contact’ is defined but never used no-unused-vars
12:46:05 PM: Line 7:8: ‘Testimonials’ is defined but never used no-unused-vars
12:46:05 PM: Line 18:10: ‘resumeData’ is assigned a value but never used no-unused-vars
12:46:05 PM: src/component/About.js
12:46:05 PM: Line 2:8: ‘main’ is defined but never used no-unused-vars
12:46:05 PM: Line 9:20: ‘setSkills’ is assigned a value but never used no-unused-vars
12:46:05 PM: Line 17:21: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images jsx-a11y/alt-text
12:46:05 PM: src/component/Header.js
12:46:05 PM: Line 4:8: ‘main’ is defined but never used no-unused-vars
12:46:05 PM: Line 5:8: ‘Ali’ is defined but never used no-unused-vars
12:46:05 PM: Line 43:21: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images jsx-a11y/alt-text
12:46:05 PM: Line 57:21: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images jsx-a11y/alt-text
12:46:05 PM: src/component/Portfolio.js
12:46:05 PM: Line 7:8: ‘aquada_1’ is defined but never used no-unused-vars
12:46:05 PM: Line 8:8: ‘aquada_2’ is defined but never used no-unused-vars
12:46:05 PM: Line 9:8: ‘aquada_3’ is defined but never used no-unused-vars
12:46:05 PM: Line 10:8: ‘aquada_4’ is defined but never used no-unused-vars
12:46:05 PM: Line 11:8: ‘aquada_5’ is defined but never used no-unused-vars
12:46:05 PM: Line 12:8: ‘aquada_6’ is defined but never used no-unused-vars
12:46:05 PM: Line 13:8: ‘aquada_7’ is defined but never used no-unused-vars
12:46:05 PM: Line 14:8: ‘aquada_8’ is defined but never used no-unused-vars
12:46:05 PM: Line 15:8: ‘aquada_9’ is defined but never used no-unused-vars
12:46:05 PM: Line 16:8: ‘aquada_10’ is defined but never used no-unused-vars
12:46:05 PM: Line 17:8: ‘aquada_11’ is defined but never used no-unused-vars
12:46:05 PM: Line 18:8: ‘aquada_12’ is defined but never used no-unused-vars
12:46:05 PM: Line 23:8: ‘etisalat_1’ is defined but never used no-unused-vars
12:46:05 PM: Line 24:8: ‘etisalat_2’ is defined but never used no-unused-vars
12:46:05 PM: Line 25:8: ‘etisalat_3’ is defined but never used no-unused-vars
12:46:05 PM: Line 26:8: ‘etisalat_4’ is defined but never used no-unused-vars
12:46:05 PM: Line 27:8: ‘etisalat_5’ is defined but never used no-unused-vars
12:46:05 PM: Line 38:8: ‘medi_1’ is defined but never used no-unused-vars
12:46:05 PM: Line 39:8: ‘medi_2’ is defined but never used no-unused-vars
12:46:05 PM: Line 40:8: ‘medi_3’ is defined but never used no-unused-vars
12:46:05 PM: Line 41:8: ‘medi_4’ is defined but never used no-unused-vars
12:46:05 PM: Line 42:8: ‘medi_5’ is defined but never used no-unused-vars
12:46:05 PM: Line 43:8: ‘medi_6’ is defined but never used no-unused-vars
12:46:05 PM: Line 44:8: ‘medi_7’ is defined but never used no-unused-vars
12:46:05 PM: Line 45:8: ‘medi_8’ is defined but never used no-unused-vars
12:46:05 PM: Line 46:8: ‘medi_9’ is defined but never used no-unused-vars
12:46:05 PM: Line 47:8: ‘medi_10’ is defined but never used no-unused-vars
12:46:05 PM: Line 48:8: ‘medi_11’ is defined but never used no-unused-vars
12:46:05 PM: Line 51:8: ‘ordering_1’ is defined but never used no-unused-vars
12:46:05 PM: Line 52:8: ‘ordering_2’ is defined but never used no-unused-vars
12:46:05 PM: Line 53:8: ‘ordering_3’ is defined but never used no-unused-vars
12:46:05 PM: Line 54:8: ‘ordering_4’ is defined but never used no-unused-vars
12:46:05 PM: Line 55:8: ‘ordering_5’ is defined but never used no-unused-vars
12:46:05 PM: Line 56:8: ‘ordering_6’ is defined but never used no-unused-vars
12:46:05 PM: Line 59:8: ‘eventFusion_1’ is defined but never used no-unused-vars
12:46:05 PM: Line 60:8: ‘eventFusion_2’ is defined but never used no-unused-vars
12:46:05 PM: Line 61:8: ‘eventFusion_3’ is defined but never used no-unused-vars
12:46:05 PM: Line 62:8: ‘eventFusion_4’ is defined but never used no-unused-vars
12:46:05 PM: Line 63:8: ‘eventFusion_5’ is defined but never used no-unused-vars
12:46:05 PM: Line 64:8: ‘eventFusion_6’ is defined but never used no-unused-vars
12:46:05 PM: Line 70:8: ‘health_main’ is defined but never used no-unused-vars
12:46:05 PM: Line 71:8: ‘health_1’ is defined but never used no-unused-vars
12:46:05 PM: Line 72:8: ‘health_2’ is defined but never used no-unused-vars
12:46:05 PM: Line 73:8: ‘health_3’ is defined but never used no-unused-vars
12:46:05 PM: Line 74:8: ‘health_4’ is defined but never used no-unused-vars
12:46:05 PM: Line 75:8: ‘health_5’ is defined but never used no-unused-vars
12:46:05 PM: Line 77:8: ‘movieStore_main’ is defined but never used no-unused-vars
12:46:05 PM: Line 82:8: ‘uskt_1’ is defined but never used no-unused-vars
12:46:05 PM: Line 83:8: ‘uskt_2’ is defined but never used no-unused-vars
12:46:05 PM: Line 84:8: ‘uskt_3’ is defined but never used no-unused-vars
12:46:05 PM: Line 85:8: ‘uskt_4’ is defined but never used no-unused-vars
12:46:05 PM: Line 86:8: ‘uskt_5’ is defined but never used no-unused-vars
12:46:05 PM: Line 87:8: ‘uskt_6’ is defined but never used no-unused-vars
12:46:05 PM: Line 88:8: ‘uskt_7’ is defined but never used no-unused-vars
12:46:05 PM: Line 91:8: ‘yamani_1’ is defined but never used no-unused-vars
12:46:05 PM: Line 92:8: ‘yamani_2’ is defined but never used no-unused-vars
12:46:05 PM: Line 93:8: ‘yamani_3’ is defined but never used no-unused-vars
12:46:05 PM: Line 94:8: ‘yamani_4’ is defined but never used no-unused-vars
12:46:05 PM: Line 95:8: ‘yamani_5’ is defined but never used no-unused-vars
12:46:05 PM: Line 318:57: Redundant alt attribute. Screen-readers already announce img tags as an image. You don’t need to use the words image, photo, or picture (or any specified custom words) in the alt prop jsx-a11y/img-redundant-alt
12:46:05 PM: Line 338:57: Redundant alt attribute. Screen-readers already announce img tags as an image. You don’t need to use the words image, photo, or picture (or any specified custom words) in the alt prop jsx-a11y/img-redundant-alt
12:46:05 PM: Line 357:57: Redundant alt attribute. Screen-readers already announce img tags as an image. You don’t need to use the words image, photo, or picture (or any specified custom words) in the alt prop jsx-a11y/img-redundant-alt
12:46:05 PM: Line 376:57: Redundant alt attribute. Screen-readers already announce img tags as an image. You don’t need to use the words image, photo, or picture (or any specified custom words) in the alt prop jsx-a11y/img-redundant-alt
12:46:05 PM: src/component/Resume.js
12:46:05 PM: Line 10:28: ‘setexperienceData’ is assigned a value but never used no-unused-vars
12:46:05 PM: Line 30:27: ‘setEducationData’ is assigned a value but never used no-unused-vars
12:46:06 PM: npm ERR! code ELIFECYCLE
12:46:06 PM: npm ERR! errno 1
12:46:06 PM: npm ERR! resume_starter_pack@0.1.0 build: react-scripts build
12:46:06 PM: npm ERR! Exit status 1
12:46:06 PM: npm ERR!
12:46:06 PM: npm ERR! Failed at the resume_starter_pack@0.1.0 build script.
12:46:06 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
12:46:06 PM: npm ERR! A complete log of this run can be found in:
12:46:06 PM: npm ERR! /opt/buildhome/.npm/_logs/2021-04-29T07_46_06_091Z-debug.log
12:46:06 PM: ​
12:46:06 PM: ────────────────────────────────────────────────────────────────
12:46:06 PM: “build.command” failed
12:46:06 PM: ────────────────────────────────────────────────────────────────
12:46:06 PM: ​
12:46:06 PM: Error message
12:46:06 PM: Command failed with exit code 1: npm run build
12:46:06 PM: ​
12:46:06 PM: Error location
12:46:06 PM: In Build command from Netlify app:
12:46:06 PM: npm run build
12:46:06 PM: ​
12:46:06 PM: Resolved config
12:46:06 PM: build:
12:46:06 PM: command: npm run build
12:46:06 PM: commandOrigin: ui
12:46:06 PM: publish: /opt/build/repo/build
12:46:06 PM: Caching artifacts
12:46:06 PM: Started saving node modules
12:46:06 PM: Finished saving node modules
12:46:06 PM: Started saving build plugins
12:46:06 PM: Finished saving build plugins
12:46:06 PM: Started saving pip cache
12:46:06 PM: Finished saving pip cache
12:46:06 PM: Started saving emacs cask dependencies
12:46:06 PM: Finished saving emacs cask dependencies
12:46:06 PM: Started saving maven dependencies
12:46:06 PM: Finished saving maven dependencies
12:46:06 PM: Started saving boot dependencies
12:46:06 PM: Finished saving boot dependencies
12:46:06 PM: Started saving rust rustup cache
12:46:06 PM: Finished saving rust rustup cache
12:46:06 PM: Started saving go dependencies
12:46:06 PM: Finished saving go dependencies
12:46:09 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:46:09 PM: Creating deploy upload records
12:46:09 PM: Failing build: Failed to build site
12:46:09 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2
12:46:09 PM: Finished processing build request in 1m40.117795326s

Change your build command to CI= npm run build.

1 Like

sorry i didn’t get your point …

i have to run this command " npm run build " or “CI= npm run build”??

The second one when publishing on Netlify.

1 Like

like this ??

Yes, remove the . from the end.

2 Likes

Thank you sooo much , it worked…
Great Community , big fan .
love from pakistan

1 Like