---
title: "Discussion on \"Deploy a React application to Netlify using Github and CI/CD pipeline\" | Hashnode"
description: "Discussion on \"Deploy a React application to Netlify using Github and CI/CD pipeline\". Deploy React to Netlify"
url: "https://hashnode.com/posts/deploy-a-react-application-to-netlify-using-github-and-cicd-pipeline/618cb3dbf991b025366e21d4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Deploy a React application to Netlify using Github and CI/CD pipeline](https://karthikeyanrm.hashnode.dev/deploy-a-react-application-to-netlify-using-github-and-cicd-pipeline?utm_source=hashnode&utm_medium=feed)

Deploy React to Netlify

Nov 11, 2021 · 3 min read · karthikeyanrm.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#netlify](https://hashnode.com/tag/netlify)
-   [#github](https://hashnode.com/tag/github)

## Written by

[Karthikeyan RM](https://hashnode.com/@KarthikeyanRM)

@KarthikeyanRM · Chennai, India

  
[View profile](https://hashnode.com/@KarthikeyanRM)

A backend web application developer

I am a backend developer primarily working on Java, Spring Boot, Hibernate, Oracle, Docker, Kubernetes, Jenkins and Microsoft Azure.

## Responses 1

Markdown supported · ⌘↵ to post

[Vaibhav Chauhan](https://hashnode.com/@vaibhavChauhan)

[Nov 11, 2021](https://hashnode.com/posts/deploy-a-react-application-to-netlify-using-github-and-cicd-pipeline/618cb3dbf991b025366e21d4/comment/618d5b49468c06249afc8260)

I always face issue of deployment on netlify actually I never have completed that process it always comes up with yarn package manager errors idk why

[Vaibhav Chauhan](https://hashnode.com/@vaibhavChauhan)

[Nov 12, 2021](https://hashnode.com/posts/deploy-a-react-application-to-netlify-using-github-and-cicd-pipeline/618cb3dbf991b025366e21d4/comment/618d5b49468c06249afc8260#reply-618e00e3468c06249afc8b7f)

@\[Karthikeyan RM\] Hii, I tried again and got an error same as "Command failed with exit code 1: yarn build " any suggestions?? and one thing I want to add is I didn't make a repo like you said I mean I have used existing repo and I think that couldn't be a problem..

[Karthikeyan RM](https://hashnode.com/@KarthikeyanRM)

[Nov 12, 2021](https://hashnode.com/posts/deploy-a-react-application-to-netlify-using-github-and-cicd-pipeline/618cb3dbf991b025366e21d4/comment/618d5b49468c06249afc8260#reply-618e5b8126d4d237c4277845)

[Vaibhav Chauhan](https://hashnode.com/@vaibhavChauhan) I think the issue could be due to wrongly fetched dependencies. One thing you can do is to execute the below commands which would remove the existing node modules, clear cache & reinstall and see if it helps

1.  rm -rf node\_modules
2.  yarn cache clean
3.  yarn
4.  yarn start

[Vaibhav Chauhan](https://hashnode.com/@vaibhavChauhan)

[Nov 13, 2021](https://hashnode.com/posts/deploy-a-react-application-to-netlify-using-github-and-cicd-pipeline/618cb3dbf991b025366e21d4/comment/618d5b49468c06249afc8260#reply-618f5ef983e4212d6e578092)

@\[Karthikeyan RM\] IDK why but still not working I think this must be a problem of dependencies I'll restore all of those in the new create-react-app that's the only option I am left with.
