Git Product home page Git Product logo

Comments (9)

qidasheng369 avatar qidasheng369 commented on July 22, 2024 7

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

from mock.

valiner avatar valiner commented on July 22, 2024 3

俺也一样。

from mock.

wll8 avatar wll8 commented on July 22, 2024

试试 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
  }]
})

from mock.

lzzqwe avatar lzzqwe commented on July 22, 2024

库表映射 查看详情

from mock.

sharywkd avatar sharywkd commented on July 22, 2024

from mock.

hello-zhao avatar hello-zhao commented on July 22, 2024

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

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

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

现在限定node 18以上了

from mock.

LuoShiXi avatar LuoShiXi commented on July 22, 2024

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

from mock.

OathKeeper723 avatar OathKeeper723 commented on July 22, 2024

是这样的

from mock.

jawalkwan avatar jawalkwan commented on July 22, 2024

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

6啊兄弟!

from mock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.