DEV Community

Florian Zeba
Florian Zeba

Posted on • Originally published at fzeba.com

node unsupported engine when updating npm

When error occurs: “unsupported engine” while trying to update npm to 10.1. a solution is to use nvm.

It does not solve the underlying problem in itself but it is a workaround.

With nvm it is possible to manage node versions on the system and easily install and use more then one node version in parallel.

  1. Installing nvm

  2. Using nvm

  3. Installing oh-my-zsh-nvm plugin (when zsh is in use)

A list of useful nvm commands:

Link:

nvm ls // list installed node versions
nvm ls-remote // list available node versions
nvm install 10.1 // install node version 10.1
nvm use 10.1 // use node version 10.1
nvm alias default 10.1 // set node version 10.1 as default
Enter fullscreen mode Exit fullscreen mode

Done.

Read this article and more on fzeba.com.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay