Home > Web Front-end > JS Tutorial > node unsupported engine when updating npm

node unsupported engine when updating npm

Patricia Arquette
Release: 2025-01-06 22:53:43
Original
210 people have browsed it

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:

  • Gist d2S
  • Gist Chranderson
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
Copy after login

Done.

Read this article and more on fzeba.com.

The above is the detailed content of node unsupported engine when updating npm. For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template