Resolves a given package if it is installed locally, then tries to resolve it from global registry, using battle-tested [global-modules][] package. Better approach than internal require.resolve
, so you can trust. You just get absolute filepath to some p
Get root folders of git, svn, mercurial, nodejs node_modules / package.json / package-lock.json, and nodejs .jscache folder
Remove node modules you are not using in another paused or finished projects and other developer files