Hi,
I am a noob in react.js and now I want to see if the table that I have learnt to create will work.
I did npm start but it gives me
npm ERR! missing script: start
So, here’s what my script looks like now (it differs from the auto-generated one)
after I changed it following this SO URLadvice : reactjs - What exactly is the 'react-scripts start' command? - Stack Overflow
"scripts": {
"start": "npm-run-all -p watch-css start-js",
"build": "npm run build-css && react-scripts build",
"watch-css": "npm run build-css && node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/ --watch --recursive",
"build-css": "node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/",
"start-js": "react-scripts start"
},
The original one looks like this, inside package.json
“script:” : {
“start”: “react-scripts start”,
“build”: “react-scripts build”,
“test”: “react-scripts test”,
“eject”: “react-scripts eject”
}
Hope someone can help me out…as my deadline to complete my task is by today…tks.