vue2 install node-sass sass-loader version

If there is an error of version incompatibility

1. Delete the downloaded node-sass sass-loader first 

npm uninstall node-sass sass-loader

2. Check the node.js environment

node -v

3. Go online to find the node-sass sass-loader version corresponding to the node version

My version is node16.14.0

npm i [email protected] [email protected]

4. Run your vue project, if there is an error, delete node_modules first, and then npm install again.

Guess you like

Origin blog.csdn.net/ferwagrea/article/details/129201862