npm-check icon indicating copy to clipboard operation
npm-check copied to clipboard

When process.env.NODE_PATH is set, npm-check -g still goes in…

Open rubikplanet opened this issue 6 years ago • 4 comments

bugfix: When process.env.NODE_PATH is set, npm-check -g still goes into globalModulesPath instead of NODE_PATH

rubikplanet avatar Nov 23 '18 18:11 rubikplanet

@lcxfs1991 could you review this please? ☺️

LinusU avatar Nov 26 '18 14:11 LinusU

Can anyone merge this pull request? That would be super handy, because I just had exactly this problem when working with NVM (node version manager) on windows, because it uses different, symlinked folders, so setting NODE_PATH helps alot.

totkeks avatar Apr 23 '19 19:04 totkeks

@totkeks I just hit the same issue. @dylang, @lcxfs1991, @LinusU or @mansona Can we please merge this in? It will greatly help us few Window users out here!

jacobrillema avatar Aug 02 '19 17:08 jacobrillema

I have encountered the same error too.

===============================
The global path you are searching is: D:\xampp\node\node_modules\
[npm-check] debug
set key cwd to value C:\Users\Suzakura\AppData\Roaming\npm\node_modules
===============================

I sincerely hope that this will improve.

Suzakura avatar Oct 13 '20 12:10 Suzakura