Always fail to build react app: Command failed with exit code 127: npm run build (

having seen all other solutions but they all seems not working on me
my deploy configuration:

Not set

Base directory

Package directory
Not set

Build command
npm run build

Publish directory

Functions directory

Deploy log visibility
Logs are public

Build status


error message:

stucking here for like 3 hours really desperate for help please
here is the setting of script in my package.json:

"scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"

A beginner to react and netlify and any help will be appreciated!

@rachel1 The error is:

Module not found: Error: Can't resolve "axios" in "/opt/build/repo/src"

Is axios in your package.json / package-lock.json?

no but after I install it in my package it still shows the same error:

@rachel1 That’s not the same error.

sh: 1: react-scripts: not found