关于node-sass module build failed
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
15:08:13.869 ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
15:08:13.878 Error: Missing binding /Users/ishowYoung/Project/app-frontend/app/node_modules/node-sass/vendor/darwin-x64-57/binding.node
15:08:13.880 Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 8.x
15:08:13.896 Found bindings for the following environments:
15:08:13.896 - OS X 64-bit with Node.js 14.x
15:08:13.911 This usually happens because your environment has changed since running `npm install`.
15:08:13.913 Run `npm rebuild node-sass` to download the binding for your current environment.
网上说的npm rebuild node-sass 已经尝试过了
也已经卸载重装过,请教大佬!!!
项目是vue-cli生成的uni-app项目
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
npm i node-sass --sass_binary_site=https://npm.taobao.org/mirror...
100%OK
如果项目中有
node-sass
,就用yarn
去安装依赖吧。不要挣扎了sass就是个坑,国内的镜像装这个超级慢,还容易失败,用less就行了,不要挣扎了 哈哈
cnpm 可以一试。