About node-sass version problem solution
Reason: The purpose of writing this copy is mainly due to the recent upgrade of the node version, which caused the original project to be unavailable, and an error such as [ Node Sass does not yet support your current environment: Windows 64-bit ] appeared
After searching a lot of online solutions, I specially sorted them out
- Under the current node version, uninstall and reinstall node-sass
$ npm uninstall node-sass // 卸载当前版本的node-sass
$ npm install -D node-sass // 重新安装node-sass
# 备注说明:如果工程比较老旧了,那么一定按照原来的nod包版本进行安装,否则可能出现兼容性问题
- How to replace this node-sass in an offline state
When we use method 1 in the external network environment, the project can already run normally. At this time,
we only need to replace node_modules/.bin/ in the project directory
[node-sass,node-sass.cmd,node-sass.ps1] 这几个文件,同时替换掉node-sass
The above operations can generally solve the situation caused by the version problem.
Remarks: Don't think about upgrading the webpack version, it may cause new problems and make the project unable to run.