Does not give me app url/name
Build Logs
11:28:07 PM: Netlify Build
11:28:07 PM: ────────────────────────────────────────────────────────────────
11:28:07 PM:
11:28:07 PM: ❯ Version
11:28:07 PM: @netlify/build 29.58.4
11:28:07 PM:
11:28:07 PM: ❯ Flags
11:28:07 PM: accountId: 6643ad0dbe2c1621f9c4cc9a
11:28:07 PM: baseRelDir: true
11:28:07 PM: buildId: 678f223e1610ef00084d183f
11:28:07 PM: deployId: 678f223e1610ef00084d1841
11:28:10 PM:
11:28:10 PM: ❯ Current directory
11:28:10 PM: /opt/build/repo/client
11:28:10 PM:
11:28:10 PM: ❯ Config file
11:28:10 PM: /opt/build/repo/client/netlify.toml
11:28:10 PM:
11:28:10 PM: ❯ Context
11:28:10 PM: production
11:28:10 PM:
11:28:10 PM: build.command from netlify.toml
11:28:10 PM: ────────────────────────────────────────────────────────────────
11:28:10 PM:
11:28:10 PM: $ npm install && npm run build
11:28:11 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
11:28:11 PM: up to date, audited 2 packages in 504ms
11:28:11 PM: 1 package is looking for funding
11:28:11 PM: run npm fund
for details
11:28:11 PM: found 0 vulnerabilities
11:28:11 PM: > client@0.0.1 build
11:28:11 PM: > vite build
11:28:11 PM: sh: 1: vite: not found
11:28:11 PM:
11:28:11 PM: “build.command” failed
11:28:11 PM: ────────────────────────────────────────────────────────────────
11:28:11 PM:
11:28:11 PM: Error message
11:28:11 PM: Command failed with exit code 127: npm install && npm run build (Search results for '"non-zero exit code: 127"' - Netlify Support Forums)
11:28:11 PM:
11:28:11 PM: Error location
11:28:11 PM: In build.command from netlify.toml:
11:28:11 PM: npm install && npm run build
11:28:11 PM:
11:28:11 PM: Resolved config
11:28:11 PM: build:
11:28:11 PM: base: /opt/build/repo/client
11:28:11 PM: command: npm install && npm run build
11:28:11 PM: commandOrigin: config
11:28:11 PM: environment:
11:28:11 PM: - NODE_ENV
11:28:11 PM: - NODE_VERSION
11:28:11 PM: publish: /opt/build/repo/client/client/build
11:28:11 PM: publishOrigin: config
11:28:11 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
11:28:11 PM: Failing build: Failed to build site
11:28:12 PM: Finished processing build request in 20.565s
Screen shots of build settings
github repo is https:repo under client directory (mono repo)
I tried changing vite from devDependencies to dependencies in package.json that didn’t change it, I changed from /client to client tried to deploy from CLI that did not work either
tried to reinstall vite multiple times as instructed by chatbot