Clean Node Artifacts no longed on by default

I have noticed recently, that when creating new “Node Static” sites that “Clean Node Artifacts” isn’t on by default anymore.

I was just wondering if there was any reasoning behind this? It’s not a big deal to activate it on each new site I add but I was wondering if there was a bigger decision around making this disabled by default?


Hello @Tom,

It is disabled by default due to two main reasons: to support rollbacks, and, to support pm2 restart. In some cases not having node_modules breaks the site.

There was a related discussion going on in another forum topic I think you want to give it a read here: Clean up node_modules folder

Also, if you’ve any idea/suggestions regarding this you can continue it over there. :wink: