This error indicates that the current node-sass version cannot run in the current environment. The solution is as follows:
1. Uninstall the current node-sass version
npm uninstall --save node-sass
2. Reinstall node-sass
npm install --save node-sass
If an error is reported during the installation, use the Taobao mirror to install
npm install cnpm -g --registry=https://registry.npm.taobao.org
If an error is reported:
Module build failed: Error: Node Sass version 6.0.0 is incompatible with ^4.0.0.
This error is that the version of node-sass is too high, install the specified version of node-sass
1. Uninstall:
npm uninstall node-sass
2. Install:
npm install [email protected]
3. run
npm run serve