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

MarcTroesken's avatar

Envoyer and socket.io

Hi,

I'm using Envoyer for deployment. I'm getting trouble with my node_modules, cause with every deploy the folder will be deleted. I thought about a hook which runs npm install after deploying, but I takes ages to do that and the connection closes while doing that.

How do you handle this guys ?

0 likes
1 reply
royduin's avatar

Just copy the node_modules directory from the previous release and run npm install to just update possible changed dependencies in your deployment.

Please or to participate in this conversation.