npm ERR! CXX(target) Release/obj.target/deasync/src/deasync.o

npm ERR! code 1
npm ERR! path /Users/tal/Documents/pro/tss-console-fe/node_modules/deasync
npm ERR! command failed
npm ERR! command sh -c node ./build.js
npm ERR! CXX(target) Release/obj.target/deasync/src/deasync.o
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.4.0
npm ERR! gyp info using node@16.14.2 | darwin | arm64
npm ERR! gyp info find Python using Python version 3.9.6 found at "/Library/Developer/CommandLineTools/usr/bin/python3"
npm ERR! gyp info spawn /Library/Developer/CommandLineTools/usr/bin/python3

deasync 是一个需要 C++ 编译 的模块,它依赖于系统的编译链(如 Xcode CLI)和 node-gyp 的编译能力。你这里报错是因为缺少 头文件,说明 编译器环境不完整。

如不需要可手动移除依赖

有些项目是间接依赖 deasync 的,可以查查是不是某个插件(比如 webpack 老版本)引入的。

查看引用链:

npm ls deasync

在这里插入图片描述
这里我并没有用到@vue/cli-plugin-unit-jest@3.12.1

所以我将@vue/cli-plugin-unit-jest@3.12.1 从 package.json 中移除。问题解决!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值