after installing 'npm install webpack-dev-server -g' not able to start expressjs project.
I am using below script:
"scripts": { "start": "run-p watch dev-server", "watch": "webpack --config webpack.config.js --watch --mode development", "dev-server": "BABEL_ENV=dev nodemon --exec 'babel-node' src/server/index.js --config nodemon.json" }
run-p command. A CLI command to run given npm-scripts in parallel. This command is the shorthand of npm-run-all -p . Usage: $ run-p [--help | -h | --version | -v] $ run-p [OPTIONS] <tasks> Run given npm-scripts in parallel. < tasks> : A list of npm-scripts' names and Glob-like patterns.
To solve the error "react-scripts is not recognized as an internal or external command, operable program or batch file", open your terminal in your project's root directory and install the react-scripts package by running npm install react-scripts and clear your npm cache if necessary. Copied!
Install/add npm-run-all
npm i npm-run-all
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With