Interference of apm and npm package paths


#1

Here is my setup and problem:

  • I have earlier installations of npm and node.
  • My PATH includes global npm module directory %USERPROFILE%\AppData\Roaming\npm.
  • atom/apm is installing packages to %USERPROFILE%.atom\packages.
  • However when looking for packages atom/apm are happy to pick them from global npm module directory.

This is inconsistent and will lead to issues if the version of package modules installed from apm differ from the module versions installed using npm.

Is there a way to fix the path that apm uses to look for package modules?