Jupyter lab build hangs and then fails at webpack --config webpack.prod.minimize.config.js

I had tried minimize False also but still fails. Is it possible to build certain extensions alone.

I have the following extensions installed -
[root@ip-10-0-0-86 ec2-user]# jupyter labextension list
JupyterLab v2.2.8
Known labextensions:
app dir: /root/anaconda3/share/jupyter/lab
@jupyterlab/git v0.21.1 enabled OK
nbdime-jupyterlab v2.0.0 enabled OK

Build recommended, please run jupyter lab build:
nbdime-jupyterlab needs to be included in build
@jupyterlab/git needs to be included in build

So can I build only those nbdime-jupyterlab and jupyterlab/git?