Hi there I’m trying to deploy a simple static website I created with Bootstrap however I’m getting an ugly error I cant seem to solve. Here is some of my deployment info :
3:37:53 PM: Build ready to start
3:37:55 PM: build-image version: 0e2f4c52031ab562db66aec633308326e3b108d0 (focal)
3:37:55 PM: build-image tag: focal
3:37:55 PM: buildbot version: 8dba8e08e1359f22ae92654e177dea552324c91c
3:37:55 PM: Fetching cached dependencies
3:37:56 PM: Failed to fetch cache, continuing with build
3:37:56 PM: Starting to prepare the repo for build
3:37:56 PM: No cached dependencies found. Cloning fresh repo
3:37:56 PM: git clone https://github.com/ValdrinMurtezi/Bootstrap-Construction-Web
3:37:57 PM: Preparing Git Reference refs/heads/main
3:37:57 PM: Parsing package.json dependencies
3:37:58 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: ‘bootstrap-5.2.0-beta1-dist’ versus ‘’ in the Netlify UI
3:37:58 PM: Starting build script
3:37:58 PM: Installing dependencies
3:37:58 PM: Python version set to 2.7
3:37:59 PM: v16.15.1 is already installed.
3:37:59 PM: Now using node v16.15.1 (npm v8.11.0)
3:37:59 PM: Started restoring cached build plugins
3:38:09 PM: $ npm run build
3:38:09 PM: npm ERR! code ENOENT
3:38:09 PM: npm ERR! syscall open
3:38:09 PM: npm ERR! path /opt/build/repo/bootstrap-5.2.0-beta1-dist/package.json
3:38:09 PM: npm ERR! errno -2
3:38:09 PM: npm ERR! enoent ENOENT: no such file or directory, open ‘/opt/build/repo/bootstrap-5.2.0-beta1-dist/package.json’
3:38:09 PM: npm ERR! enoent This is related to npm not being able to find a file.
3:38:09 PM: npm ERR! enoent
3:38:09 PM: npm ERR! A complete log of this run can be found in:
3:38:09 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-07-03T13_38_09_918Z-debug-0.log
3:38:10 PM:
3:38:10 PM: ────────────────────────────────────────────────────────────────
3:38:10 PM: “build.command” failed
3:38:10 PM: ────────────────────────────────────────────────────────────────
3:38:10 PM:
3:38:10 PM: Error message
3:38:10 PM: Command failed with exit code 254: npm run build (Search results for '"non-zero exit code: 254"' - Netlify Support Forums)
3:38:10 PM:
3:38:10 PM: Error location
3:38:10 PM: In Build command from Netlify app:
3:38:10 PM: npm run build
3:38:10 PM:
3:38:10 PM: Resolved config
3:38:10 PM: build:
3:38:10 PM: base: /opt/build/repo/bootstrap-5.2.0-beta1-dist
3:38:10 PM: command: npm run build
3:38:10 PM: commandOrigin: ui
3:38:10 PM: environment:
3:38:10 PM: - CI
3:38:10 PM: publish: /opt/build/repo/bootstrap-5.2.0-beta1-dist
3:38:10 PM: publishOrigin: default
3:38:10 PM: redirects:
3:38:10 PM: - from: /*
status: 200
to: /index.html
Caching artifacts
3:38:10 PM: Started saving build plugins