造成错误的主要原因是:版本不匹配 解决办法: 卸载重装手动设置指定版本,然后采用npm install 重新下载 npm uninstall css-loader //卸载 npm install css-loader@3.0.0 --save-dev //指定版本重装