具体报错如下
Module build failed (from ./node_modules/postcss-loader/src/index.js): Error: Loading PostCSS Plugin failed: Cannot find module 'postcss-url' Require stack: - E:\project\ousense\saas.memory\noop.js
安装postcss-url命令
npm install postcss-url --save-dev
安装成功提示
npm WARN The package css-loader is included as both a dev and production dependency. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) + postcss-url@8.0.0 added 3 packages from 2 contributors and removed 15 packages in 21.376s
至于WARN的话不用管它就是。