Because of how require works, NPM dependencies are not allowed to begin with ., .. or /. This worked previously, because npm@2.x stored all dependencies and their dependencies in a non-flattened tree. npm@3.x, however, flattens the tree, so requiring this module fails.
Because of how
require
works, NPM dependencies are not allowed to begin with.
,..
or/
. This worked previously, becausenpm@2.x
stored all dependencies and their dependencies in a non-flattened tree.npm@3.x
, however, flattens the tree, so requiring this module fails.