0

I'm trying to setup Less in Reactjs, and im following this tutorial, create-react-app. my problem is, after following those steps, I got this error message

'react-scripts' is not recognized as an internal or external command, operable program or batch file.

This error show when I add new commands on package.json

"scripts": {
     "build-css": "node-sass-chokidar src/ -o src/",
     "watch-css": "npm run build-css && node-sass-chokidar src/ -o src/ --watch --recursive",
-    "start": "react-scripts start",
-    "build": "react-scripts build",
+    "start-js": "react-scripts start",
+    "start": "npm-run-all -p watch-css start-js",
+    "build-js": "react-scripts build",
+    "build": "npm-run-all build-css build-js",
     "test": "react-scripts test --env=jsdom",
     "eject": "react-scripts eject"
   }

I don't know what to do on this. Hope you understand me.

Thanks.

1 Answer 1

1

Have you added react-scripts into your package.json? If not, do so, npm install and go ahead!

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

2 Comments

It works sir, thanks, I thought it will overwrite all the changes I made.
sorry sir, im still wating 1 min

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.