Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
289 views
in Technique[技术] by (71.8m points)

关于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项目


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

如果项目中有 node-sass,就用 yarn 去安装依赖吧。不要挣扎了


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...