doc: explain error message on missing main file
authorWolfgang Steiner <drywolf.dev@gmail.com>
Sun, 20 Mar 2016 18:29:36 +0000 (19:29 +0100)
committerMyles Borins <mborins@us.ibm.com>
Wed, 30 Mar 2016 20:12:16 +0000 (13:12 -0700)
commit20faf9097d3ed674f9bdd0bef19423163911ad3b
tree85f143426b4981ab0c14972117c507aacc2c4aaf
parentd55599f4d83b85f60280b43803060cb9e50f34c9
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: https://github.com/nodejs/node/pull/5812
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
doc/api/modules.markdown