Search code examples
node.jslaravel-forge

How do I update node in laravel forge?


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?


Solution

  • 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