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

adammench's avatar

Laravel Forge deploy script -- node version discrepancy

Hey!

I recently updated node on my server from v8 -> v12 LTS. I used nvm to install and enable this.

Output of nvm ls:

->     v12.16.1
         system
default -> 12.16.1 (-> v12.16.1)
node -> stable (-> v12.16.1) (default)
stable -> 12.16 (-> v12.16.1) (default)
iojs -> N/A (default)
unstable -> N/A (default)
lts/* -> lts/erbium (-> v12.16.1)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.19.0 (-> N/A)
lts/erbium -> v12.16.1

output of node -v: v12.16.1

However in my forge deploy script the output of node -v is v8.12.0, which of course breaks my deploys because dependencies are not supported by the older version.

I've tried restarting the server. Disabling / re-enabling the deploy script. Any tips? Many thanks!

Adam

0 likes
4 replies
ethor88's avatar

@Sti3bas The Laravel Forge docs you linked did it for me. Thank you!

1 like

Please or to participate in this conversation.