DEV Community

NDONGO TONUX SAMB
NDONGO TONUX SAMB

Posted on

1

How to change Node.js version thanks to NPM

Hello, how are you!

I had updated my version of node.js (v11.x) and it created dependency problems on some of my applications. So I had only one idea to downgrade my version.

1 - Upgrade to the latest stable release :

   sudo npm cache clean -f
   sudo npm install -g n
   sudo n stable
Enter fullscreen mode Exit fullscreen mode

2 - Upgrade to an LTS version:

   sudo npm cache clean -f
   sudo npm install -g n
   sudo n 10.15.0
Enter fullscreen mode Exit fullscreen mode

LTS : long-term support (LTS) version

Please check your version of node.js
node -v

Tonux, Takk-Jok

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

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay