How do I update node in laravel forge?

806 Views Asked by At

I am trying to update node to version 18 from version 14 as my old version is no longer supported. I have tried running npm install -g node but it fails to execute. I can't install n either to make the update as it also fails to execute. What commands should I run in laravel-forge to update node?

1

There are 1 best solutions below

0
Lim Han Yang On BEST ANSWER

Thank to fardjad for the help. I was to update node successfully using the specific command below. It seems that laravel forge doesn't accept other commands like npm install n to update node, only this specific one.

npm i node