Depending of how this package is installed, the node_modules directory is not always installed in the same location. We introduce the findNodeModules function that tries to locate the node_modules directory by looking the parent directory until reaching the root.
Depending of how this package is installed, the
node_modules
directory is not always installed in the same location. We introduce thefindNodeModules
function that tries to locate thenode_modules
directory by looking the parent directory until reaching the root.