日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Mac电脑 hbuilderx 运行到小程序node-sass异常

發(fā)布時間:2023/12/10 编程问答 21 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Mac电脑 hbuilderx 运行到小程序node-sass异常 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

報錯如下

Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): 02:01:43.383 ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js): 02:01:43.390 Error: Missing binding /Users/qinky/WebstormProjects/qingchi_uni/node_modules/node-sass/vendor/darwin-x64-57/binding.node 02:01:43.390 Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 8.x 02:01:43.395 Found bindings for the following environments: 02:01:43.396 - OS X 64-bit with Node.js 10.x 02:01:43.401 This usually happens because your environment has changed since running `npm install`. 02:01:43.401 Run `npm rebuild node-sass` to download the binding for your current environment. 02:01:43.408 at module.exports (/Users/qinky/WebstormProjects/qingchi_uni/node_modules/node-sass/lib/binding.js:15:13) 02:01:43.409 at Object.<anonymous> (/Users/qinky/WebstormProjects/qingchi_uni/node_modules/node-sass/lib/index.js:14:35) 02:01:43.416 at Module._compile (module.js:652:30) 02:01:43.423 at Object.Module._extensions..js (module.js:663:10) 02:01:43.429 at Module.load (module.js:565:32) 02:01:43.429 at tryModuleLoad (module.js:505:12) 02:01:43.435 at Function.Module._load (module.js:497:3) 02:01:43.435 at Module.require (module.js:596:17) 02:01:43.460 at require (internal/module.js:11:18) 02:01:43.461 at getDefaultSassImplementation (/Users/qinky/WebstormProjects/qingchi_uni/node_modules/sass-loader/dist/getDefaultSassImplementation.js:24:10) 02:01:43.468 at getSassImplementation (/Users/qinky/WebstormProjects/qingchi_uni/node_modules/sass-loader/dist/getSassImplementation.js:19:72) 02:01:43.476 at Object.loader (/Users/qinky/WebstormProjects/qingchi_uni/node_modules/sass-loader/dist/index.js:40:61) 02:01:43.482 at runLoaders (/Users/qinky/WebstormProjects/qingchi_uni/node_modules/webpack/lib/NormalModule.js:301:20) 02:01:43.482 at /Users/qinky/WebstormProjects/qingchi_uni/node_modules/loader-runner/lib/LoaderRunner.js:367:11 02:01:43.509 at /Users/qinky/WebstormProjects/qingchi_uni/node_modules/loader-runner/lib/LoaderRunner.js:233:18 02:01:43.510 at runSyncOrAsync (/Users/qinky/WebstormProjects/qingchi_uni/node_modules/loader-runner/lib/LoaderRunner.js:143:3) 02:01:43.519 at iterateNormalLoaders (/Users/qinky/WebstormProjects/qingchi_uni/node_modules/loader-runner/lib/LoaderRunner.js:232:2) 02:01:43.521 at iterateNormalLoaders (/Users/qinky/WebstormProjects/qingchi_uni/node_modules/loader-runner/lib/LoaderRunner.js:221:10) 02:01:43.528 at /Users/qinky/WebstormProjects/qingchi_uni/node_modules/loader-runner/lib/LoaderRunner.js:236:3 02:01:43.529 at Object.context.callback (/Users/qinky/WebstormProjects/qingchi_uni/node_modules/loader-runner/lib/LoaderRunner.js:111:13) 02:01:43.560 at Object.module.exports (/Users/qinky/WebstormProjects/qingchi_uni/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js:60:10) 02:01:43.560 ERROR Build failed with errors.

mac 下載最新hbuilderx 使用vue-cli創(chuàng)建項目,添加uni-ui,使用,運行到微信小程序,報錯

同一套代碼,mac下 webstorm 運行 npm run dev:mp-weixin 正常
在win10的 hbuilderx中運行正常

mac解決辦法:

cd /Applications/HBuilderX.app/Contents/HBuilderX/plugins/node mv node node-v8 ln -s /usr/local/bin/node /Applications/HBuilderX.app/Contents/HBuilderX/plugins/node/node

創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎勵來咯,堅持創(chuàng)作打卡瓜分現(xiàn)金大獎

總結(jié)

以上是生活随笔為你收集整理的Mac电脑 hbuilderx 运行到小程序node-sass异常的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。