0

enter image description here

command react-scripts build always fails even though react-scripts.cmd exists under folder node_modules/.bin/ strangely: npm run build(build: react-scripts build) will run successfully

1
  • Please don't post images of error messages. They can not be indexed by Google and so it doesn't help other people. Commented Dec 12, 2019 at 12:53

2 Answers 2

2

You probably not installed react-script globally, therefore it is located in the local node_module.

You can run it with npx

npx react-script build

or provide a path to it...

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks. Installing globally has solved my problem. npx is also useful.The third solution might be: npm bin & react-scripts build.it will run locally
0
  1. Installing globally has solved my problem.

  2. npx is also useful.

  3. The third solution might be:

npm bin 
react-scripts build.

it will run locally

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.