diff --git a/doc/api/modules.md b/doc/api/modules.md index 10a532e335ccab..eda6855e3c2488 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -722,6 +722,8 @@ changes: Use the internal `require()` machinery to look up the location of a module, but rather than loading the module, just return the resolved filename. +If the module can not be found, a `MODULE_NOT_FOUND` error is thrown. + ##### `require.resolve.paths(request)`