Fork me on GitHub

Node Sass could not find a binding for your current environment : Node.js 8.x -SpiritMark

Node环境从8升级到10后,运行程序抛出Node Sass could not find a binding for your current environment的错误。
在这里插入图片描述
Node环境从8升级到10后: 就是之前 是 node8 现在换成 node10报的错误,运行程序抛出Node Sass could not find a binding for your current environment的错误。
简单的说,这段代码就是告诉你,node-sass 不兼容 node v8 的版本。
执行下面命令即可解决

npm uninstall -s node-sass
npm i node-sass -D
posted @ 2019-11-25 20:15  全栈小刘  阅读(135)  评论(0编辑  收藏  举报