"build.command" failed

I need advice to debug deploy https://app.netlify.com/sites/blissful-aryabhata-c5f589/deploys/5f0d4f077ab74c04656916ce
here is mine build settings


here is my package.json
{
“name”: “power-system-experts-client”,
“version”: “0.1.0”,
“private”: false,
“homepage”: “”,
“basename”: “/”,
“dependencies”: {
@babel/core”: “7.1.0”,
@svgr/webpack”: “2.4.1”,
“babel-core”: “7.0.0-bridge.0”,
“babel-jest”: “23.6.0”,
“babel-loader”: “8.0.4”,
“babel-plugin-named-asset-import”: “^0.2.3”,
“babel-preset-react-app”: “^6.1.0”,
“bfj”: “6.1.1”,
“case-sensitive-paths-webpack-plugin”: “2.1.2”,
“chalk”: “2.4.1”,
“css-loader”: “1.0.0”,
“dotenv”: “6.0.0”,
“dotenv-expand”: “4.2.0”,
“eslint”: “5.6.0”,
“eslint-config-react-app”: “^3.0.5”,
“eslint-loader”: “2.1.1”,
“eslint-plugin-flowtype”: “2.50.1”,
“eslint-plugin-import”: “2.14.0”,
“eslint-plugin-jsx-a11y”: “6.1.2”,
“eslint-plugin-react”: “7.11.1”,
“fetch-instagram”: “^1.0.0-alpha.3”,
“file-loader”: “2.0.0”,
“fork-ts-checker-webpack-plugin-alt”: “0.4.14”,
“formik”: “1.5.8”,
“fs-extra”: “7.0.0”,
“html-webpack-plugin”: “4.0.0-alpha.2”,
“identity-obj-proxy”: “3.0.0”,
“instagram-api”: “^1.0.3”,
“jest”: “23.6.0”,
“jest-pnp-resolver”: “1.0.1”,
“jest-resolve”: “23.6.0”,
“lodash”: “^4.17.15”,
“mini-css-extract-plugin”: “0.4.3”,
“node-sass”: “^4.14.1”,
“optimize-css-assets-webpack-plugin”: “5.0.1”,
“pnp-webpack-plugin”: “1.1.0”,
“postcss-flexbugs-fixes”: “4.1.0”,
“postcss-loader”: “3.0.0”,
“postcss-preset-env”: “6.0.6”,
“postcss-safe-parser”: “4.0.1”,
“qs”: “^6.9.4”,
“react”: “^16.6.3”,
“react-anchor-link-smooth-scroll”: “^1.0.12”,
“react-app-polyfill”: “^0.1.3”,
“react-dev-utils”: “^6.1.1”,
“react-dom”: “^16.6.1”,
“react-helmet”: “^5.2.1”,
“react-image-magnifiers”: “^1.0.3”,
“react-image-zoom”: “^0.7.0”,
“react-infinite-scroll-component”: “^4.2.0”,
“react-input-range”: “^1.3.0”,
“react-instafeed”: “^0.4.0”,
“react-loading-bar”: “0.0.7”,
“react-pace-progress”: “^2.0.0”,
“react-paypal-express-checkout”: “^1.0.5”,
“react-redux”: “^5.1.1”,
“react-redux-loading-bar”: “^4.1.0”,
“react-redux-multilingual”: “^2.0.2”,
“react-responsive-modal”: “^3.5.1”,
“react-router-dom”: “^4.3.1”,
“react-router-scroll-4”: “^1.0.0-beta.2”,
“react-scripts”: “^2.1.1”,
“react-slick”: “^0.21.0”,
“react-slide-toggle”: “^0.1.13”,
“react-sticky-box”: “^0.7.5”,
“react-tabs”: “^2.3.0”,
“react-toastify”: “^4.4.3”,
“react-topbar-progress-indicator”: “^2.0.0”,
“redux”: “^4.0.1”,
“redux-infinite-scroll”: “^1.0.9”,
“redux-logger”: “^3.0.6”,
“redux-thunk”: “^2.3.0”,
“resolve”: “1.8.1”,
“simple-react-validator”: “^1.0.1”,
“slick-carousel”: “^1.8.1”,
“smartmenus”: “^1.1.0”,
“style-loader”: “0.23.0”,
“terser-webpack-plugin”: “1.1.0”,
“url-loader”: “1.1.1”,
“webpack-dev-server”: “3.1.9”,
“webpack-manifest-plugin”: “2.0.4”,
“workbox-webpack-plugin”: “3.6.3”,
“yup”: “^0.29.1”
},
“scripts”: {
“start”: “node scripts/start.js”,
“build”: “react-scripts build”,
“test”: “node scripts/test.js”
},
“eslintConfig”: {
“extends”: “react-app”
},
“browserslist”: [
“>0.2%”,
“not dead”,
“not ie <= 11”,
“not op_mini all”
],
“jest”: {
“collectCoverageFrom”: [
“src//*.{js,jsx,ts,tsx}",
"!src/
/.d.ts"
],
“resolver”: “jest-pnp-resolver”,
“setupFiles”: [
“react-app-polyfill/jsdom”
],
“testMatch”: [
"/src//tests//
.{js,jsx,ts,tsx}”,
“/src/**/?(.)(spec|test).{js,jsx,ts,tsx}"
],
“testEnvironment”: “jsdom”,
“testURL”: “http://localhost”,
“transform”: {
“^.+\.(js|jsx|ts|tsx)": "<rootDir>/node_modules/babel-jest", "^.+\\.css”: “/config/jest/cssTransform.js”,
"^(?!.
\.(js|jsx|ts|tsx|css|json))": "<rootDir>/config/jest/fileTransform.js" }, "transformIgnorePatterns": [ "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)”,
“^.+\.module\.(css|sass|scss)" ], "moduleNameMapper": { "^react-native”: “react-native-web”,
“^.+\.module\.(css|sass|scss)$”: “identity-obj-proxy”
},
“moduleFileExtensions”: [
“web.js”,
“js”,
“web.ts”,
“ts”,
“web.tsx”,
“tsx”,
“json”,
“web.jsx”,
“jsx”,
“node”
]
},
“babel”: {
“presets”: [
“react-app”
]
},
“devDependencies”: {}
}

Hi @QaimAli,

You need to remove your .env file . It currently contains only:

CI=true npm run build

This does not follow the syntax for .env. Also, this removes the CI= workaround.

Also, please note you do not need to prefix CI= to both your Netlify build command and the build script in package.json, but only one of them.

Please let us know if this fixed your problem.

Thanks , it solved my problem

1 Like