# Node Version Manager

Published articles for Node Version Manager.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## The best way to get NVM working in CI/CD systems

DevFeed: [The best way to get NVM working in CI/CD systems](<https://devfeed.tech/articles/the-best-way-to-get-nvm-working-in-ci-cd-systems-27681.md>)

Original publisher: [Read original article](<https://gagor.pro/2023/04/the-best-way-to-get-nvm-working-in-ci-cd-systems/>)

Author: Tom

Published: 2023-04-25T00:00:00Z

Content type: tutorial

Language: en

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Node.js](<https://devfeed.tech/topics/node-js.md>), [DevOps](<https://devfeed.tech/topics/devops.md>), [Shell](<https://devfeed.tech/topics/shell.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>)

Tags: [bash](<https://devfeed.tech/tags/bash.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [ci-cd-node-js-setup](<https://devfeed.tech/tags/ci-cd-node-js-setup.md>), [cli](<https://devfeed.tech/tags/cli.md>), [devops](<https://devfeed.tech/tags/devops.md>), [devops-best-practices](<https://devfeed.tech/tags/devops-best-practices.md>), [docker](<https://devfeed.tech/tags/docker.md>), [docker-node-js-management](<https://devfeed.tech/tags/docker-node-js-management.md>), [linux](<https://devfeed.tech/tags/linux.md>), [node](<https://devfeed.tech/tags/node.md>), [node-js-version-control](<https://devfeed.tech/tags/node-js-version-control.md>), [node-version-manager](<https://devfeed.tech/tags/node-version-manager.md>), [nvm-in-ci-cd](<https://devfeed.tech/tags/nvm-in-ci-cd.md>), [shell](<https://devfeed.tech/tags/shell.md>)

### AI overview

This tutorial explains the challenges of using NVM to manage Node.js versions in CI/CD systems, especially in non-interactive shells. It discusses the role of shell startup files and Docker base images when supporting many projects and Node.js versions.

### Source excerpt

Learn the best way to get NVM (Node Version Manager) working in CI/CD systems, ensuring seamless Node.js version management in your DevOps workflows.

## How to update npm using nvm

DevFeed: [How to update npm using nvm](<https://devfeed.tech/articles/how-to-update-npm-using-nvm-37326.md>)

Original publisher: [Read original article](<https://muffinman.io/blog/nvm-updating-npm/>)

Author: Stanko

Published: 2017-09-02T00:00:00Z

Content type: tutorial

Language: en

Sources: [Stanko Tadić](<https://devfeed.tech/sources/stanko-tadic.md>)

Topics: [npm](<https://devfeed.tech/topics/npm.md>), [Node.js](<https://devfeed.tech/topics/node-js.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>)

Tags: [command](<https://devfeed.tech/tags/command.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [node-version-manager](<https://devfeed.tech/tags/node-version-manager.md>), [npm](<https://devfeed.tech/tags/npm.md>), [update](<https://devfeed.tech/tags/update.md>)

### AI overview

A tutorial explains how to update npm when Node.js is managed with nvm. It describes locating nvm's Node.js library directory, running npm install npm there, reopening the terminal, and using nvm install-latest-npm as an alternative.

### Source excerpt

If you are JavaScript developer and not using nvm you might want to look at it. Node Version Manager is easy way to install, manage and work with multiple node versions. Recently I got npm update notification, that looks something like this: For some reason, when I had node installed through nvm, npm i -g npm didn't work. However, when I was using a "system" node version, installed from Node.js website, it did. I can't remember the exact error, but it was probably something with my PATH configuration. So I tried to find a path where global packages are installed when using nvm. Once I found it, it was super easy to update npm in that specific folder. # navigate to nvm's node lib folder # (replace v8.4.0 with your version) cd ~/.nvm/versions/node/v8.4.0/lib/ # update npm right there npm install npm # reopen your terminal That's it. Great thing is that npm can update itself. And this works for any other global npm package. Or, as suggested in the comments, just use nvm's command: nvm install-latest-npm