Command failed with exit code 1: CI= npm run build
14,609
Generally, libraries that choose to fail on warnings presume their users will want to fix the issues causing the warnings. If this isn’t practical for your use case, you can override the CI variable by adding CI='' to the beginning of your site build command. For example:
CI='' npm run build
This fixed my own similar problem
Related videos on Youtube
Author by
Admin
Updated on June 04, 2022Comments
-
Admin almost 2 years
I've been losing my mind over this
I've used this video as reference but I'm still getting the error below
I've tried everything from Netlify Form to youtube and Stackoverflow5:33:23 AM: ──────────────────────────────────────────────────────────────── 5:33:23 AM: "build.command" failed 5:33:23 AM: ──────────────────────────────────────────────────────────────── 5:33:23 AM: 5:33:23 AM: Error message 5:33:23 AM: Command failed with exit code 1: CI= npm run build 5:33:23 AM: 5:33:23 AM: Error location 5:33:23 AM: In Build command from Netlify app: 5:33:23 AM: CI= npm run build 5:33:23 AM: 5:33:23 AM: Resolved config 5:33:23 AM: build: 5:33:23 AM: command: CI= npm run build 5:33:23 AM: commandOrigin: ui 5:33:23 AM: publish: /opt/build/repo/dist
My package.json file
{ "name": "testing", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "./node_modules/.bin/netlify-lambda serve src", "build": "CI= npm run build" }, "repository": { "type": "git", "url": "git+https://github.com/<my-username>/testing.git" }, "author": "", "license": "ISC", "bugs": { "url": "https://github.com/<my-username>/testing/issues" }, "homepage": "https://github.com/<my-username>/testing#readme", "dependencies": { "express": "^4.17.1", "netlify-lambda": "^2.0.6", "serverless-http": "^2.7.0" } }
My netlify.toml
[build] functions = "functions"
What am I missing? please help I'm losing my hair over this
-
taleodor almost 3 yearsI think this "build": "CI= npm run build" should be just "build": "npm run build"
-
Admin almost 3 years@taleodor still not working, do you have like a simple hello world repository so I can take a reference?
-
taleodor almost 3 yearsNo, sorry, haven't tried Netflify. If you're willing to try Google App Engine + GitHub Actions combo - here is my detailed write-up - worklifenotes.com/2020/05/24/…
-