diff --git a/doc/api/modules.md b/doc/api/modules.md index 4c91c27f52bc33..9587e2ef0d38e5 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -736,6 +736,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)`