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

Error message:

Error message
This error is reported because the downloaded joi version does not support the Validate method

Solution:

  1. Uninstall the currently installed joi components
  2. Reinstall joi
cnpm install [email protected]

or

npm install [email protected]

I hope that the solution I shared can help more friends, and I hope everyone likes and comments a lot.

Self-motivation

The environment will not change, the solution is to change yourself.

Guess you like

Origin blog.csdn.net/weixin_50001396/article/details/112553134