尝试过npm rebulid node-sass但是也一直报make erro的错误

本来是Mac开发,本地环境换了Linux的系统

npm run dev的时候报错

ERROR in /home/YiChat/node_modules/node-sass/vendor/linux-x64-47/binding.node: ELF load command past end of file
 @ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=_v-38bf5edc&scoped=true!./~/sass-loader?indentedSyntax!./~/vue-loader/lib/selector.js?type=style&index=0!./src/components/welcome.vue 4:14-286 13:2-17:4 14:20-292

ERROR in /home/YiChat/node_modules/node-sass/vendor/linux-x64-47/binding.node: ELF load command past end of file
 @ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=_v-2204634e&scoped=true!./~/sass-loader!./~/vue-loader/lib/selector.js?type=style&index=0!./src/components/chat.vue 4:14-268 13:2-17:4 14:20-274
阅读 5.2k
1 个回答

node-sass自身有问题,我现在已经改用less了,以前的解决办法是把node版本切换到0.12.4,node版本管理用的n

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题