我有一个使用“ bootstrap”创建的应用程序:“ ^ 4.3.1”, “反应”:“ ^ 16.8.5”,“ webpack-dev-server”:“ ^ 3.2.1”和“ webpack”:“ ^ 4.29.6”。但是,每当我运行npm start时,都会出现此错误:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! myApp@1.0.0 start: `webpack-dev-server --port 8080 --mode development --progress --colors --inline --content-base build`
npm ERR! Exit status 1
npm ERR! Failed at the myApp@1.0.0 start script.
这些脚本正在使用:
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack --config webpack.config.js --mode production --progress --display-error-details",
"start": "webpack-dev-server --port 8080 --mode development --progress --colors --inline --content-base build"
},