Failing to compile with exit code 1 & 2

Hi @mxhaib :wave:t6: , welcome to the forums! :netliconfetti: Can you try the following please only AFTER you got it working locally first?

  • check the version of node and npm installed on your computer
  • set the environment variables in netlify: NODE_VERSION with value of the version installed on your computer. Do the same with NPM_VERSION

If that doesn’t help please give this support guide a read.