Vue2 is the easiest way to install scss on the whole network

Why is the installation unsuccessful?
Please add a picture description
It’s nothing more than one version is higher and the other is lower, because the version of node.js is higher…maybe lower…it’s very annoying, let me once know them as shabiiiii

The solution is to manually modify the package.json page in the vue project
and modify it in dependencies

"dependencies": {
		"core-js": "^2.6.5",
		"element-ui": "^2.15.13",
		"sass-loader": "^10.0.1",
		"vue": "^2.6.10",
		"node-sass": "^6.0.1"
	},

Then manually install

npm install
//或者
yarn install

Guess you like

Origin blog.csdn.net/weixin_44856917/article/details/129588540