DEV Community

NDONGO TONUX SAMB
NDONGO TONUX SAMB

Posted on

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)