---
title: "Comment by Vaibhav Chauhan on \"Deploy a React application to Netlify using Github and CI/CD pipeline\" | Hashnode"
description: "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"
url: "https://hashnode.com/posts/deploy-a-react-application-to-netlify-using-github-and-cicd-pipeline/618cb3dbf991b025366e21d4/comment/618d5b49468c06249afc8260"
---

[Discussion](https://hashnode.com/posts/deploy-a-react-application-to-netlify-using-github-and-cicd-pipeline/618cb3dbf991b025366e21d4)

Comment [Deploy a React application to Netlify using Github and CI/CD pipeline](https://hashnode.com/posts/deploy-a-react-application-to-netlify-using-github-and-cicd-pipeline/618cb3dbf991b025366e21d4)

[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

[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-618ddaa0f991b025366e362f)

Hi Vaibhav - can you answer the below questions

1.  Are you deploying a react app
2.  Following the procedure which I mentioned here or directly putting your static files from local (generated after build) to netlify?
3.  What is the yarn package manager error ?
4.  Go to deploy settings -> edit settings -> build settings -> build command - enter as ci=yarn build and save
5.  Go to retry deploy -> Deploy site.

I'm not very confident if the above would resolve your issue but that has helped a lot of people, even in stack overflow I had come across this solution. Do give a try and also respond to the questions so that we would come to know about the exact issue.

[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.
