Fix TISTUD-3085 Numerous calls to npm config get prefix while indexing js modules
  - cache npm module path
  - cache npm source path and add pref change listener to update it