Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm version #60

Open
navyasri111 opened this issue Aug 7, 2020 · 1 comment
Open

npm version #60

navyasri111 opened this issue Aug 7, 2020 · 1 comment

Comments

@navyasri111
Copy link

navyasri111 commented Aug 7, 2020

npm version is showing 6.14.7 although Iam using ---- nvm use v11.0.0 command.
How to change to 6.4.1
Any ideas...how to fix

@hareom284
Copy link

n installs the version of npm bundled with node as part of the node install. If you need a different version of npm, then downgrading (or upgrading) npm from the bundled npm version is a separate command. e.g.

npm install -g [email protected]

When you switch node versions using n, you need to reinstall the desired npm version again.

2020 update: --preserve added in n v6.3.0 to preserve the version of npm when installing node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants