问题描述:
出现两三次这样的问题了,刚开始node是@16..以上版本,将node降级@14..版本后,还是同样的报错,说是node-sass版本和node版本不匹配,又重新卸载安装匹配的node-sass版本,才执行成功.我重新执行npm install有出现了相同的问题,记录一下
Missing binding D:\XXX\XXX\node_modules\node-sass\vendor\win32-x64-83\bin
Node Sass could not find a binding for your current environment: Windows 64-bit with
Found bindings for the following environments: - Windows 64-bit with Node.js 14.x
This usually happens because your environment has changed since running `npm install`
Run `npm rebuild node-sass` to download the binding for your current environment.
大致意思就是说:这种情况通常是因为运行`npm install后,环境发生了更改` 我们需要运行“npm rebuild node-sass”下载当前环境的绑定。要与node版本进行匹配.
解决方法:
执行下面命令重新编译node-sass
npm rebuild node-sass
问题解决!