Node Sass could not find a binding for your current environment: Windows 64 项目node环境不对,无法运行

Node Sass could not find a binding for your current environment: Windows 64 with node…

接手同事的vue项目,运行不起来,报错 如上述,大概就是本地node版本可能与项目中不一致之类的,网上翻半天解决方案,最终解决,记录于此。

遇到:**Node Sass could not find a binding for your current environment: Windows 64 with node…**报错,大部分方案是让 删掉这个 node_modules文件夹
然后运行:npm rebuild node-sass

运行之后,遇到另外一个报错 :npm ERR! Error: EPERM: operation not permitted, unlink。。。
大概就是没权限吧,然后又去折腾电脑开管理员权限
如何开管理员权限: 百度一下,搜索完之后一步步打开,又发现,这个权限本来就有,脑壳痛!Node Sass could not find a binding for your current environment: Windows 64 项目node环境不对,无法运行
继续百度:如何用管理员权限运行cmd命令,,方法: 点击项目文件夹 ,右键:管理员取得所有权
然后重新在项目文件夹下 运行 cmd 命令 npm i
就是重新安装了一下,再次启动,Thank god 这次项目终于运行起来了

总结:
1、如果遇到版本不一致,删除 node_modules文件夹,项目下 运行 npm rebuild node-sass
2、权限问题,安装不了,先获取管理员权限,对项目文件夹使用管理员权限,运行 npm i