Open ghost opened 6 years ago
Can confirm I'm getting a similar problem on Linux Mint 18 after moving my node_modules https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally
seems to be the same on windows . It's return C:\Users\thib3\AppData\Roaming\npm
( so the path to NPM, and not to the package )
Using @olsonpm's https://github.com/olsonpm/exampleCLI
I've changed the version of
app-root-path
to2.1.0
I expected
path
to be/usr/local/lib/node_modules/exampleCLI
I notice that the path is a bit different than in #8 , I assume node's default location for global packages has changed since then?
I also checked
require('module').globalPaths
:and
/usr/local/lib/node_modules
doesn't appear, could that be throwing things off?