16
votes

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"
}
1
Webpack doesn't provide a run-p command. Are you missing another dependency – perhaps npm-run-all? - Jonathan Lonowski

1 Answers

30
votes

Install/add npm-run-all

npm i npm-run-all