Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

run-p: command not found

Tags:

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" } 
like image 264
Vin Avatar asked Nov 11 '18 19:11

Vin


People also ask

What is run P command?

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.

Is not recognized as an internal or external command npm run build?

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!


1 Answers

Install/add npm-run-all

npm i npm-run-all 
like image 172
Sheri Kwong Avatar answered Nov 02 '22 17:11

Sheri Kwong