Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mstdmstd's avatar

How to update node and npm of my project ?

Hello, on my Kubuntu 17.10 I want to upgrade all parts of my laravel/vue.js application. I have now:

$ node -v 
v8.11.1
$ npm -v 
5.6.0
$  php artisan --version
Laravel Framework 5.6.12

Looks like nmp and node.js are not the latest version. Which is the best way to upgrade and to which version ?

Thanks!

0 likes
1 reply
Cronix's avatar

You can upgrade them all by

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

that will update node to the latest stable version, and update npm to the latest as well. It's funny how you can upgrade node via npm, but npm requires node lol.

2 likes

Please or to participate in this conversation.