vue项目安装sass报错解决方法

报错内容

Module build failed: Error: Missing binding /Users/jac/Downloads/country/node_modules/node-sass/vendor/darwin-x64-

59/binding.node

Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 9.x

Found bindings for the following environments:

- OS X 64-bit with Node.js 6.x


因为sass对node 8x+版本不兼容

解决方法

npm i node-sass -D

亲测有效

你可能感兴趣的:(vue项目安装sass报错解决方法)