When executing the named NPM run dev to start the front-end project, the following error is reported
Module build failed: Error: Node Sass version 6.0.0 is incompatible with ^4.0.0.
From the prompt, I downloaded the latest dependency. The current version is incompatible. Later, I checked the relevant documents, which is really caused by the high version;
The simple way is to find the appropriate version and install the specified version (try it several times if you don’t know the version)
The processing steps are as follows:
#uninstall
npm uninstall node-sass
#install with the version
npm install [email protected] --save-dev
Run NPM run dev again