How to solve hook "after_prepare" error

the plugin cordova-plugin-crypt-file return the fallowing error, how to solve it,

UserError: Executing script found in plugin cordova-plugin-crypt-file for hook “after_prepare”: plugins/cordova-plugin-crypt-file/hooks/after_prepare.js Using “requireCordovaModule” to load non-cordova module “path” is not supported. Instead, add this module to your dependencies and use regular “require” to load it.