Deploy Building Error: Build script returned non-zero exit code: 2

I am attempting to deploy my React app through GitHub, but when I try to deploy it, I get this error:
5:21:27 PM: $ npm run build
5:21:27 PM: npm error code ENOENT
5:21:27 PM: npm error syscall open
5:21:27 PM: npm error path /opt/build/repo/package.json
5:21:27 PM: npm error errno -2
5:21:27 PM: npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open ‘/opt/build/repo/package.json’
5:21:27 PM: npm error enoent This is related to npm not being able to find a file.
5:21:27 PM: npm error enoent
5:21:27 PM: npm error A complete log of this run can be found in: /opt/buildhome/.npm/_logs/2024-06-29T21_21_27_496Z-debug-0.log
5:21:27 PM: ​
5:21:27 PM: “build.command” failed
5:21:27 PM: ────────────────────────────────────────────────────────────────
5:21:27 PM: ​
5:21:27 PM: Error message
5:21:27 PM: Command failed with exit code 254: npm run build (Search results for '"non-zero exit code: 254"' - Netlify Support Forums)
5:21:27 PM: ​
5:21:27 PM: Error location
5:21:27 PM: In Build command from Netlify app:
5:21:27 PM: npm run build
5:21:27 PM: ​
5:21:27 PM: Resolved config
5:21:27 PM: build:
5:21:27 PM: command: npm run build
5:21:27 PM: commandOrigin: ui
5:21:27 PM: publish: /opt/build/repo/talented-tenth/build
5:21:27 PM: publishOrigin: ui
5:21:28 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)
5:21:28 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
5:21:28 PM: Failing build: Failed to build site
5:21:28 PM: Finished processing build request in 18.537s

For reference, this is the organization of folders/files in my GitHub project and my Netlify build settings:

How can I stop getting the error and get the building stage to complete? Thanks!

The error is:

Since your Base directory is set to / that’s where Netlify starts, and it tries to load /package.json which does not exist in your repository.

Since you have your Publish directory set to talented-tenth/build, my wild guess is that you probably have all your source files in a folder called talented-tenth in your repository.

If that’s the case, you would change your Base directory to talented-tenth