A+
npm rebuild node-sass记录
标签: node node-saas 最后编辑:2022年4月12日
报错原因
node.js从8升级到了11,再次运行原有项目时提示如下
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 11.x
Found bindings for the following environments:
- Windows 64-bit with Node.js 8.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 --save-dev rebuild-node-sass node-sass
说:来学习一下,应该用得上