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

ncu -g does not seems to work with custom node/npm installations.

Open diegocr opened this issue 10 months ago • 12 comments

  • [x] I have searched for similar issues
  • [x] I am using the latest version of npm-check-updates
  • [x] I am using node >= 14.14

Hi there,

at first it was not clear what was going on, but upon running ncu --verbose -g found there a options.prefix pointing to %APPDATA%\npm but that path here doesn't exists (because nodejs is not installed on the system drive)

I made a symlink and got ncu -g working again, but... perhaps ncu should be using the NODE_PATH environment variable for this "prefix" value (?)

fwiw, on ~/.npmrc i do have:

prefix=D:\\nodejs
cache=R:\Temp\npm-cache

and NODE_PATH does point to D:\nodejs\node_modules (the before mentioned symlink does point to this path)

Please let me know if i do have to provide further troubleshooting details, and/or if i can help in some other way.

Thanks!

diegocr avatar Aug 19 '23 13:08 diegocr