Generally speaking, it is the node-sass and If the local node environment is inconsistent, first check the node-sass version referenced in the project, and then compare it with the node version in the local environment to make the appropriate choice, either modify the node-sass version in the project or modify the node version in the local environment.
1. How to check the local environment node version
Open the command line tool and enter
node -v
2. Check the node-sass version referenced in the project, find the package.json file and search for node-sass to query the current version. .
3. Query the node.js version corresponding to node-sass.
https://github.com/sass/node-sass/releases?page=1
. 4. If the versions are all corresponding, we first clear npm, and then npm install.
npm cache clean -f npm i5. Okay, I wish you success! ! !
Recommended learning: "
node.js Video Tutorial