No matter what the problem is with node-sass, it is most likely a version mismatch.
Note that many blogs recommend that you change the node-sass version, regardless of what version of node you have.
I suggest you don't worry about it. It's faster to just change the node version. (If you change the sass version and it is a mirror and based on the node version, there is a high probability that an error will still be reported. You will be irritable.) After uninstalling node, go to Baidu to download a node14 version
. , the default version on the official website is the latest version, do not download it, just keep going next for installation.
After the installation is completed,
directly change the version in package.json, as shown below,
and then execute npm install again
Node Sass version 6.0.0 is incompatible with^4.0.0 node-sass problem
Guess you like
Origin blog.csdn.net/zhangaob/article/details/124214414
Ranking