You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
In versions before 0.6 setting require.path dynamically changed the module search path
After 0.6 setting process.env.NODE_PATH dynamically changes environment variable (as intended) but does not influence the paths used by module.js to load modules (require.path did this).
If my application based on config uses different custom modules I'd like to add path to them dynamically.
As solution can suggest to either make NODE_PATH setter to re-init module paths with module._initPaths() OR make _initPaths() method public.