
- 发布:2021-02-20 11:04
- 更新:2021-02-20 11:33
- 阅读:1286
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: MAC 10.15.5
HBuilderX类型: 正式
HBuilderX版本号: 3.1.2
手机系统: 全部
手机厂商: 华为
页面类型: vue
打包方式: 云端
项目创建方式: HBuilderX
测试过的手机:
示例代码:
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
10:53:58.311 Error: Missing binding /Users/zhoub/vue-boce/boce-mall-H5/node_modules/node-sass/vendor/darwin-x64-57/binding.node
10:53:58.312 Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 8.x
10:53:58.317 Found bindings for the following environments:
10:53:58.317 - OS X 64-bit with Node.js 14.x
10:53:58.323 This usually happens because your environment has changed since running npm install
.
10:53:58.323 Run npm rebuild node-sass
to download the binding for your current environment.
10:53:58.331 at module.exports (/Users/zhoub/vue-boce/boce-mall-H5/node_modules/node-sass/lib/binding.js:15:13)
10:53:58.331 at Object.<anonymous> (/Users/zhoub/vue-boce/boce-mall-H5/node_modules/node-sass/lib/index.js:13:35)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
10:53:58.311 Error: Missing binding /Users/zhoub/vue-boce/boce-mall-H5/node_modules/node-sass/vendor/darwin-x64-57/binding.node
10:53:58.312 Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 8.x
10:53:58.317 Found bindings for the following environments:
10:53:58.317 - OS X 64-bit with Node.js 14.x
10:53:58.323 This usually happens because your environment has changed since running npm install
.
10:53:58.323 Run npm rebuild node-sass
to download the binding for your current environment.
10:53:58.331 at module.exports (/Users/zhoub/vue-boce/boce-mall-H5/node_modules/node-sass/lib/binding.js:15:13)
10:53:58.331 at Object.<anonymous> (/Users/zhoub/vue-boce/boce-mall-H5/node_modules/node-sass/lib/index.js:13:35)
操作步骤:
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
10:53:58.311 Error: Missing binding /Users/zhoub/vue-boce/boce-mall-H5/node_modules/node-sass/vendor/darwin-x64-57/binding.node
10:53:58.312 Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 8.x
10:53:58.317 Found bindings for the following environments:
10:53:58.317 - OS X 64-bit with Node.js 14.x
10:53:58.323 This usually happens because your environment has changed since running npm install
.
10:53:58.323 Run npm rebuild node-sass
to download the binding for your current environment.
10:53:58.331 at module.exports (/Users/zhoub/vue-boce/boce-mall-H5/node_modules/node-sass/lib/binding.js:15:13)
10:53:58.331 at Object.<anonymous> (/Users/zhoub/vue-boce/boce-mall-H5/node_modules/node-sass/lib/index.js:13:35)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
10:53:58.311 Error: Missing binding /Users/zhoub/vue-boce/boce-mall-H5/node_modules/node-sass/vendor/darwin-x64-57/binding.node
10:53:58.312 Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 8.x
10:53:58.317 Found bindings for the following environments:
10:53:58.317 - OS X 64-bit with Node.js 14.x
10:53:58.323 This usually happens because your environment has changed since running npm install
.
10:53:58.323 Run npm rebuild node-sass
to download the binding for your current environment.
10:53:58.331 at module.exports (/Users/zhoub/vue-boce/boce-mall-H5/node_modules/node-sass/lib/binding.js:15:13)
10:53:58.331 at Object.<anonymous> (/Users/zhoub/vue-boce/boce-mall-H5/node_modules/node-sass/lib/index.js:13:35)
预期结果:
编译成功
编译成功
实际结果:
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
10:53:58.311 Error: Missing binding /Users/zhoub/vue-boce/boce-mall-H5/node_modules/node-sass/vendor/darwin-x64-57/binding.node
10:53:58.312 Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 8.x
10:53:58.317 Found bindings for the following environments:
10:53:58.317 - OS X 64-bit with Node.js 14.x
10:53:58.323 This usually happens because your environment has changed since running npm install
.
10:53:58.323 Run npm rebuild node-sass
to download the binding for your current environment.
10:53:58.331 at module.exports (/Users/zhoub/vue-boce/boce-mall-H5/node_modules/node-sass/lib/binding.js:15:13)
10:53:58.331 at Object.<anonymous> (/Users/zhoub/vue-boce/boce-mall-H5/node_modules/node-sass/lib/index.js:13:35)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
10:53:58.311 Error: Missing binding /Users/zhoub/vue-boce/boce-mall-H5/node_modules/node-sass/vendor/darwin-x64-57/binding.node
10:53:58.312 Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 8.x
10:53:58.317 Found bindings for the following environments:
10:53:58.317 - OS X 64-bit with Node.js 14.x
10:53:58.323 This usually happens because your environment has changed since running npm install
.
10:53:58.323 Run npm rebuild node-sass
to download the binding for your current environment.
10:53:58.331 at module.exports (/Users/zhoub/vue-boce/boce-mall-H5/node_modules/node-sass/lib/binding.js:15:13)
10:53:58.331 at Object.<anonymous> (/Users/zhoub/vue-boce/boce-mall-H5/node_modules/node-sass/lib/index.js:13:35)
bug描述:
在windows中可以编译成功,在mac时使用命令行npm run serve 是成功的,但是在HBUILDER时编译失败,报这个错,降低sass-loader版本也无效,
zbb (作者)
谢谢
2021-02-20 18:23