vue项目安装依赖遇到问题提示node版本问题

1.问题描述:

error commander@12.0.0: The engine "node" is incompatible with this module. Expected version ">=18". Got "16.20.2"
error Found incompatible module.

或error @achrinza/node-ipc@9.2.2: The engine "node" is incompatible with this module. Expected version "8 || 10 || 12 || 14 || 16 || 17". Got "18.18.0"
error Found incompatible module.
这俩问题,我改变node版本解决其中一个问题后,又遇到另一个问题,怎么办?

2.解决方式:

切到node16的版本,我是16.20.2,然后运行

yarn config set ignore-engines true

之后运行 yarn install 安装依赖,又遇到问题:

 error /Users/quanweize/Desktop/kedukeji/gx-admin-ui/node_modules/deasync: Command failed.
Exit code: 1
Command: node ./build.js
Arguments: 
Directory: /Users/quanweize/Desktop/kedukeji/gx-admin-ui/node_modules/deasync
Output:
gyp info it worked if it ends with ok

懵逼。。无视掉,直接运行yarn install,成功!

  • 4
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值