This is needed for SSR? I think the quickest way would be to run npm install --omit=dev (omit-dev would exclude any modules needed only for local dev) and then restart node server. (inevitably that node_modules directory will be full of files that aren't really needed unless you rollback, but so will your local side) OR, ditch SSR so you don't have to use node.js on the server.