asdf-nodejs icon indicating copy to clipboard operation
asdf-nodejs copied to clipboard

Do not set NPM_CONFIG_PREFIX

Open mpern opened this issue 3 years ago • 2 comments

Maybe it's just me, but I would prefer if the asdf-managed node.js does not change the default location for global node modules.

It took me a while to figure out why yarn and npm couldn't find the same global packages. It's because of the NPM_CONFIG_PREFIX injected by asdf-nodejs.

I propose to use the output of npm root -g instead of injecting non-standard defaults.

mpern avatar Jul 17 '21 13:07 mpern

Related to #224, #22

mpern avatar Jul 17 '21 13:07 mpern

There's #228 for this exact problem. I'm kinda busy these last months, but I will try to make it spin again. My greatest concern is that removing the .bin prefix might break something unrelated, might be an unnecessary worry though

You (or anyone else interested) are free to try the branch and send any feedback

augustobmoura avatar Jul 17 '21 22:07 augustobmoura