To use less, you need to download less and less loader
npm install less less-loader --save-dev
In this way, an error will be reported after running. The reason is that the loader version is too high. Just reduce the version
Uninstall less loader
NPM uninstall less loader
install less loader
NPM install less- [email protected] --save-dev