Anders Pedersen
Anders Pedersen

Reputation: 2385

downgrade NPM version on mac

I'm trying to downgrade my NPM version from 6.5.0 -> 6.2.0 (i'm on MAC OS)

running npm install -g [email protected]

however it still shows version 6.5.0 in the terminal with npm -v (also after reboot)

Something i'm missing here ? i want to be able to switch between versions with easy, preferably not by reinstalling Node and NPM each time.

Upvotes: 1

Views: 2218

Answers (1)

user835611
user835611

Reputation: 2366

Best use nvm, the Node package manager. You can effortlessly switch between Node versions and their matching npm versions.

Try which npm and check your .profile and .bashrc files, maybe you have a specific npm path in there?

Upvotes: 3

Related Questions