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

Commit

Permalink
Browse files Browse the repository at this point in the history
docs: Add docs for MODULE_NOT_FOUND error.
  • Loading branch information
TooTallNate authored and koichik committed Dec 19, 2011
1 parent 3f987cd commit ec11525
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/modules.markdown
Expand Up @@ -115,6 +115,9 @@ That is, `circle.js` must be in the same directory as `foo.js` for
Without a leading '/' or './' to indicate a file, the module is either a
"core module" or is loaded from a `node_modules` folder.

If the given path does not exist, `require()` will throw an Error with its
`code` property set to `'MODULE_NOT_FOUND'`.

### Loading from `node_modules` Folders

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

0 comments on commit ec11525

Please sign in to comment.