webpack 5版本 報(bào)錯(cuò)了
webpack 5.61.0 compiled with 2 errors and 1 warning in 3181 ms npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! vuespace@1.0.0 build: `webpack --config webpack.config.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the vuespace@1.0.0 build script. 這個(gè)是怎么回事呀
2021-12-03
開頭把老師的npm i webpack命令替換成npm install --save webpack@3.10.0就可以了(@后面就是安裝時(shí)指定的版本號(hào)),然后我把其他依賴也安裝了視頻對(duì)應(yīng)的版本(在package.json里的dependencies,視頻的10:37里有顯示)就沒有報(bào)錯(cuò)了