Vue app deploy error

I need advice to debug deployment of a vue app from github

2:01:35 PM: Build ready to start
2:01:39 PM: build-image version: 30f629161c0736b1a3ecd8b418e5eeffab5c0faf
2:01:39 PM: build-image tag: v3.3.14
2:01:39 PM: buildbot version: 1da4cf38e1ad1fe9ce7deeeba939bcc9c6c3f794
2:01:39 PM: Fetching cached dependencies
2:01:39 PM: Starting to download cache of 73.3MB
2:01:40 PM: Finished downloading cache in 600.855842ms
2:01:40 PM: Starting to extract cache
2:01:43 PM: Finished extracting cache in 3.152024249s
2:01:43 PM: Finished fetching cache in 3.768171092s
2:01:43 PM: Starting to prepare the repo for build
2:01:43 PM: Preparing Git Reference refs/heads/master
2:01:45 PM: Starting build script
2:01:45 PM: Installing dependencies
2:01:45 PM: Started restoring cached node version
2:01:49 PM: Finished restoring cached node version
2:01:49 PM: v10.20.1 is already installed.
2:01:50 PM: Now using node v10.20.1 (npm v6.14.4)
2:01:50 PM: Started restoring cached build plugins
2:01:50 PM: Finished restoring cached build plugins
2:01:50 PM: Attempting ruby version 2.6.2, read from environment
2:01:52 PM: Using ruby version 2.6.2
2:01:52 PM: Using PHP version 5.6
2:01:52 PM: 5.2 is already installed.
2:01:52 PM: Using Swift version 5.2
2:01:52 PM: Started restoring cached go cache
2:01:52 PM: Finished restoring cached go cache
2:01:52 PM: go version go1.12 linux/amd64
2:01:52 PM: go version go1.12 linux/amd64
2:01:52 PM: Installing missing commands
2:01:52 PM: Verify run directory
2:01:54 PM: ​
2:01:54 PM: ┌─────────────────────────────┐
2:01:54 PM: │ Netlify Build │
2:01:54 PM: └─────────────────────────────┘
2:01:54 PM: ​
2:01:54 PM: ❯ Version
2:01:54 PM: @netlify/build 1.0.10
2:01:54 PM: ​
2:01:54 PM: ❯ Flags
2:01:54 PM: mode: buildbot
2:01:54 PM: ​
2:01:54 PM: ❯ Current directory
2:01:54 PM: /opt/build/repo/dist
2:01:54 PM: ​
2:01:54 PM: ❯ Config file
2:01:54 PM: No config file was defined: using default values.
2:01:54 PM: ​
2:01:54 PM: ❯ Context
2:01:54 PM: production
2:01:54 PM: ​
2:01:54 PM: ┌────────────────────────────────┐
2:01:54 PM: │ 1. Build command from settings │
2:01:54 PM: └────────────────────────────────┘
2:01:54 PM: ​
2:01:54 PM: $ npm run build
2:01:55 PM: > chairs_vue@0.1.0 build /opt/build/repo
2:01:55 PM: > vue-cli-service build
2:01:55 PM: sh: 1:
2:01:55 PM: vue-cli-service: not found
2:01:55 PM: npm
2:01:55 PM: ERR!
2:01:55 PM: code ELIFECYCLE
2:01:55 PM: npm
2:01:55 PM: ERR! syscall spawn
2:01:55 PM: npm ERR! file
2:01:55 PM: sh
2:01:55 PM: npm ERR!
2:01:55 PM: errno ENOENT
2:01:55 PM: npm
2:01:55 PM: ERR! chairs_vue@0.1.0 build: vue-cli-service build
2:01:55 PM: npm ERR!
2:01:55 PM: spawn ENOENT
2:01:55 PM: npm
2:01:55 PM: ERR!
2:01:55 PM: npm
2:01:55 PM: ERR! Failed at the chairs_vue@0.1.0 build script.
2:01:55 PM: npm
2:01:55 PM: ERR! This is probably not a problem with npm. There is likely additional logging output above.
2:01:55 PM: npm
2:01:55 PM: WARN
2:01:55 PM: Local package.json exists, but node_modules missing, did you mean to install?
2:01:55 PM: npm
2:01:55 PM: ERR!
2:01:55 PM: A complete log of this run can be found in:
2:01:55 PM: npm
2:01:55 PM: ERR!
2:01:55 PM: /opt/buildhome/.npm/_logs/2020-05-28T13_01_55_677Z-debug.log
2:01:55 PM: ​
2:01:55 PM: ┌─────────────────────────────┐
2:01:55 PM: │ “build.command” failed │
2:01:55 PM: └─────────────────────────────┘
2:01:55 PM: ​
2:01:55 PM: Error message
2:01:55 PM: Command failed with exit code 1: npm run build
2:01:55 PM: ​
2:01:55 PM: Error location
2:01:55 PM: In Build command from settings:
2:01:55 PM: npm run build
2:01:55 PM: ​
2:01:55 PM: Resolved config
2:01:55 PM: build:
2:01:55 PM: base: /opt/build/repo/dist
2:01:55 PM: command: npm run build
2:01:55 PM: Caching artifacts
2:01:55 PM: Started saving build plugins
2:01:55 PM: Finished saving build plugins
2:01:55 PM: Started saving pip cache
2:01:56 PM: Finished saving pip cache
2:01:56 PM: Started saving emacs cask dependencies
2:01:56 PM: Finished saving emacs cask dependencies
2:01:56 PM: Started saving maven dependencies
2:01:56 PM: Finished saving maven dependencies
2:01:56 PM: Started saving boot dependencies
2:01:56 PM: Finished saving boot dependencies
2:01:56 PM: Started saving go dependencies
2:01:56 PM: Finished saving go dependencies
2:01:56 PM: Error running command: Build script returned non-zero exit code: 1
2:01:56 PM: Failing build: Failed to build site
2:01:56 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 1
2:01:56 PM: Finished processing build request in 17.104929164s

Sadly I’m not sure what happened. I have tried everything 10 times, delete npm stuff, rebuild, and at last I have removed all Chairs_api and replaced with chairs_api also in the folder name and in readme.md, just being desperate, and now it works. Got no idea what it has to do with missing cli.

hmm, i wonder if this was the problem:

What you are describing sounds a bit like a an issue with case sensitivity on our system.

at any rate, i am glad it is working now!