PLEASE help us help you by writing a good post!
- Netlify site: app-gamma-adeptdc.netlify.app
- Custom domain: app-gamma.adeptdc.com
Error in npm build
7:05:24 PM: $ npm run build
7:05:24 PM: > k8s-ui@1.0.0 build /opt/build/repo
7:05:24 PM: > react-scripts build
7:05:26 PM: Creating an optimized production build...
7:07:00 PM: Failed to compile.
7:07:00 PM:
7:07:00 PM: ./src/index.scss
7:07:00 PM: Error: Missing binding /opt/build/repo/node_modules/node-sass/vendor/linux-x64-64/binding.node
7:07:00 PM: Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 10.x
7:07:00 PM: Found bindings for the following environments:
7:07:00 PM: - Linux 64-bit with Node.js 12.x
7:07:00 PM: This usually happens because your environment has changed since running `npm install`.
7:07:00 PM: Run `npm rebuild node-sass` to download the binding for your current environment.
7:07:00 PM: npm ERR! code ELIFECYCLE
7:07:00 PM: npm ERR! errno 1
7:07:00 PM: npm ERR! k8s-ui@1.0.0 build: `react-scripts build`
7:07:00 PM: npm ERR! Exit status 1
7:07:00 PM: npm ERR!
7:07:00 PM: npm ERR! Failed at the k8s-ui@1.0.0 build script.
7:07:00 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
7:07:00 PM: npm ERR! A complete log of this run can be found in:
7:07:00 PM: npm ERR! /opt/buildhome/.npm/_logs/2020-09-20T13_37_00_404Z-debug.log
7:07:00 PM:
7:07:00 PM: ┌─────────────────────────────┐
7:07:00 PM: │ "build.command" failed │
7:07:00 PM: └─────────────────────────────┘
7:07:00 PM:
7:07:00 PM: Error message
7:07:00 PM: Command failed with exit code 1: npm run build
7:07:00 PM:
7:07:00 PM: Error location
7:07:00 PM: In Build command from Netlify app:
7:07:00 PM: npm run build
7:07:00 PM:
7:07:00 PM: Resolved config
7:07:00 PM: build:
7:07:00 PM: command: npm run build
7:07:00 PM: commandOrigin: ui
7:07:00 PM: environment:
7:07:00 PM: - NODE_ENV
7:07:00 PM: - REACT_APP_API_SERVER
7:07:00 PM: publish: /opt/build/repo/build
7:07:00 PM: redirects:
7:07:00 PM: - from: /*
status: 200
to: /index.html
Caching artifacts
7:07:00 PM: Started saving node modules
7:07:00 PM: Finished saving node modules
7:07:00 PM: Started saving build plugins
7:07:00 PM: Finished saving build plugins
7:07:00 PM: Started saving pip cache
7:07:00 PM: Finished saving pip cache
7:07:00 PM: Started saving emacs cask dependencies
7:07:00 PM: Finished saving emacs cask dependencies
7:07:00 PM: Started saving maven dependencies
7:07:00 PM: Finished saving maven dependencies
7:07:00 PM: Started saving boot dependencies
7:07:00 PM: Finished saving boot dependencies
7:07:00 PM: Started saving go dependencies
7:07:00 PM: Finished saving go dependencies
7:07:03 PM: Error running command: Build script returned non-zero exit code: 2
7:07:03 PM: Failing build: Failed to build site
7:07:03 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
7:07:04 PM: Finished processing build request in 2m16.784568045s