fnm icon indicating copy to clipboard operation
fnm copied to clipboard

fnm doesn't switch to correct npm version

Open osenvosem opened this issue 2 years ago • 5 comments

MacOS 12.3, fnm 1.31.0 For example correct npm version for node 15.10.0 is 7.5.3 according to this table

Screenshot 2022-03-29 at 23 44 05

osenvosem avatar Mar 29 '22 20:03 osenvosem

Can you share what is the output of which npm?

Schniz avatar Mar 29 '22 20:03 Schniz

Can you share what is the output of which npm?

Sure. It is /Users/srg/Library/Caches/fnm_multishells/66194_1648220932004/bin/npm

Screenshot 2022-03-30 at 12 13 46

osenvosem avatar Mar 30 '22 09:03 osenvosem

I'm also getting this, assuming the error is coming from npm being installed via brew, should I remove npm installed via brew?

screenshot 2022-03-30 at 15 38 00 screenshot 2022-03-30 at 15 38 19 screenshot 2022-03-30 at 15 38 39

caliguIa avatar Mar 30 '22 14:03 caliguIa

I'm having the same problem. Removing the brew version fixes it, but I assume that it will install it again sometime because it's a dependency for some packages.

rubenmate avatar Apr 10 '22 17:04 rubenmate

Running brew unlink node seems to fix this

aetherplex avatar Jul 17 '23 01:07 aetherplex