Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望不要将 "commander" 的版本设定成 "*" #508

Open
trcat opened this issue Jun 20, 2023 · 8 comments
Open

希望不要将 "commander" 的版本设定成 "*" #508

trcat opened this issue Jun 20, 2023 · 8 comments

Comments

@trcat
Copy link

trcat commented Jun 20, 2023

commander 项目最近更新到 11.0.0 后,限定了需要 node 支持 16 以上,这样的改动对我们项目来说太突然了。

由于我们的项目还没有准备好node 版本的升级,故导致了编译的报错。

希望 mocjs 能使用最低支持的 commander,这样会比较友好~

@valiner
Copy link

valiner commented Jun 20, 2023

俺也一样。

@wll8
Copy link

wll8 commented Jun 20, 2023

试试 https://github.com/wll8/better-mock

npm i @wll8/better-mock
const Mock = require('@wll8/better-mock')
Mock.mock({
  'list|1-10': [{
    'id|+1': 1
  }]
})

@lzzqwe
Copy link

lzzqwe commented Jul 18, 2023

库表映射 查看详情

@sharywkd
Copy link

sharywkd commented Jul 18, 2023 via email

@hello-zhao
Copy link

commander 项目最近更新到 11.0.0 后,限定了需要 node 支持 16 以上,这样的改动对我们项目来说太突然了。

由于我们的项目还没有准备好node 版本的升级,故导致了编译的报错。

希望 mocjs 能使用最低支持的 commander,这样会比较友好~

现在限定node 18以上了

@LuoShiXi
Copy link

遇到同样的问题,顶!!!希望不要commander:*

@qidasheng369
Copy link

package.json中设置mockjs/commander的依赖版本即可,如下:
"resolutions": { "**/mockjs/commander": "11.1.0" },

@OathKeeper723
Copy link

是这样的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants