Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit ec11525

Browse files
TooTallNatekoichik
authored andcommittedDec 19, 2011
docs: Add docs for MODULE_NOT_FOUND error.
·
1 parent 3f987cd commit ec11525

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎doc/api/modules.markdown

+3
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ That is, `circle.js` must be in the same directory as `foo.js` for
115115
Without a leading '/' or './' to indicate a file, the module is either a
116116
"core module" or is loaded from a `node_modules` folder.
117117

118+
If the given path does not exist, `require()` will throw an Error with its
119+
`code` property set to `'MODULE_NOT_FOUND'`.
120+
118121
### Loading from `node_modules` Folders
119122

120123
If the module identifier passed to `require()` is not a native module,

0 commit comments

Comments
 (0)
This repository has been archived.