Volta is a tool manager which installs global packages in a different directory than the one returned by npm root --global, which is the one used by the is-installed-globally library. Thus, when trying to run the cli, it does not know that it is installed globally and fails.
For reference, in my machine npm root --global returns: C:\Users\pmfernandes\AppData\Local\Volta\tools\image\node\12.22.12\node_modules
While the global packages are actually stored in: C:\Users\pmfernandes\AppData\Local\Volta\tools\image\packages
Volta is a tool manager which installs global packages in a different directory than the one returned by
npm root --global
, which is the one used by theis-installed-globally
library. Thus, when trying to run the cli, it does not know that it is installed globally and fails.For reference, in my machine
npm root --global
returns:C:\Users\pmfernandes\AppData\Local\Volta\tools\image\node\12.22.12\node_modules
While the global packages are actually stored in:
C:\Users\pmfernandes\AppData\Local\Volta\tools\image\packages
Relevant code