Joi是JavaScript对象的规则描述语言和验证器

通常会在数据校验中遇到如下问题:
解决Joi报错TypeError: Joi.Validate is not a function问题

报错信息:TypeError: Joi.Validate is not a function

问题原因:新版本不支持

解决方法:

方法一、

//卸载当前目录下的joi组件
node uninstall joi

//关闭终端窗口,重新打开终端窗口,安装指定的版本的joi
node install joi@14.3.1

方法二、

//1.手动删除node_modules目录下的Joi文件夹
//2.使用命令安装
npm install joi@14.3.1

相关文章:

  • 2021-12-23
  • 2021-09-11
  • 2022-12-23
  • 2021-06-03
  • 2021-10-04
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-15
  • 2022-12-23
  • 2021-11-02
  • 2021-07-15
  • 2021-09-06
  • 2021-10-25
  • 2021-07-13
相关资源
相似解决方案