Missing binding node_modules/node-sass/vendor/darwin-x64-72/binding.node
起因是我换了电脑,将代码从git上把代码down下来之后
yarn //安装依赖 等同于install
npm run serve //运行程序
先报了一个错误,分析原因是node版本过高,node-sass不支持,然后我看了一下当前电脑版本node@17.+,之前的电脑版本node版本是 v14.16.1,接下来想那就版本一致吧,
Mac切换node版本
npm install -g n //安装n node版本管理
sudo n 14.16.1 // 切换安装到node@14.16.1版本
然后运行代码后,报了如下错误
error: Missing binding YOUR_PROJECT_PATH/node_modules/node-sass/vendor/darwin-x64-72/binding.node
Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 12.xFound bindings for the following environments:- OS X 64-bit with Node.js 12.xThis usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to download the binding for your current environment.
按照提示尝试执行 npm install 和 npm rebuild node-sass 无果后换个思路解决问题。
问题解析:
在目录下 找不到darwin-x64-72/binding.node文件 那我们解决这个问题就好了
解决办法:
1、找到node-sass链接,进入url:https://github.com/sass/node-sass/releases
2、 下载指定版本:在页面中找到报错中你需要的版本,下载到本地
3、在.../node_modules/node-sass/vendor目录下新建目录 darwin-x64-72,将下载的文件放在此目录下,并更名为binding.node。(按照个人需求将下载的文件发在指定目录下)
4、重新运行代码,大功告成!
Missing binding node_modules/node-sass/vendor/darwin-x64-72/binding.node相关推荐
- Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 10.x
Node Sass could not find a binding 错误示例 error in ./src/components/BaseLayout.vue?vue&type=style& ...
- Node Sass could not find a binding for your current environment
typescript引入css直接报错: Node Sass could not find a binding for your current environment 具体错误如下: ERROR i ...
- 解决Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 14.x
今天在新的开发环境检出nodejs的前端项目,运行npm run serve启动项目后报: > Node Sass could not find a binding for your curre ...
- Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js
> Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 出现 ...
- vue:关于vue服务启动num run serve报Error: Missing binding Node Sass could not find 问题
报错日志为: Error: Missing binding ...\node_modules\node-sass\vendor\win32-x64-83\binding.node Node Sass ...
- Node Sass找不到您当前环境的绑定
本文翻译自:Node Sass couldn't find a binding for your current environment I am having issues building an ...
- node sass编译报错 记录
很久之前得一个项目,久到遗忘了发版方式(源码和打包代码分离了之后发版的,嵌套在另一个项目内)...最近加了一个需求,不得不重新来触碰它. 找到代码,修改.编译...发现控制台报出了一大堆错误,找到核心 ...
- HBuilderX 安装 scss/sass编译 插件报错 binding.node 解决方案windows版
HBuilderX 安装 scss/sass编译 插件报错 binding.node 解决方案windows版 官方给出的解决方案 让我们在命令行执行下面三行代码 [0;31m--> LibSa ...
- Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runt
重新搭建开发环境,运行报错,日志如下: Error: Node Sass does not yet support your current environment: Windows 64-bit w ...
最新文章
- 使用np.load()加载数据 报错 Object arrays cannot be loaded when allow_pickle=False
- Android深度探索读书笔记 第六章
- Eclipse运行Applet没有显示图片,getCodeBase,getDocumentBase
- BZOJ 1786 DP
- TypeError at / 'AnonymousUser' object is not iterable
- groupby java_Java8的groupBy实现集合的分组
- 你的微信还安全吗?揭露清理僵尸粉的连环骗局
- Uranus Ex通过完善自身,影响更广阔的金融衍生品市场
- redis 缓存击穿及应对
- 【PCB学习笔记】绘制智能车四层板 --- PCB封装库的创建方法及现有封装调用
- Android中加载Gif动画
- python复数运算程序_python复数及计算法则
- 谷歌发布菲律宾街景地图
- c语言且不用 怎么表示,“并且”用C语言怎么表示
- git仓库-客户端软件安装配置过程
- python函数快查快用
- as3压缩解压缩的第三方包及实现DEMO
- 超适合新手练习的前端网页
- 操作系统经典独木桥问题
- BUAA_数据结构_2nd_小型图书管理系统