doc: explain error message on missing main file · nodejs/node@f70c71f · GitHub
Skip to content

Commit f70c71f

Browse files
drywolfjasnell
authored andcommitted
doc: explain error message on missing main file
Added a hint saying that node uses the default "Cannot find module" error when requiring a module for which the "main" file specified in the package.json is missing. PR-URL: #5812 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 91cf55b commit f70c71f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

doc/api/modules.markdown

Lines changed: 8 additions & 0 deletions

0 commit comments

Comments
 (0)