Hi @mahmoudhosnyomran97, in addition to @nathanmartin’s suggestion, kindly add the environment variables by following the steps below.
I have tried it out myself by testing it with your repository.
The following steps below should solve the problem and deploy your site successfully.
- Go to your project in Netlify and click on your site name.
- Click on the
Site settings
button or tab on the right most side of the menu. - Click on Environment variables (New) on the left pane menu.
- Click on the
Add Variable
button. - Type
CI
into the key input field, and then typefalse
into the values field, and then click on theCreate variable
button. - Repeat the steps from step 4 to add another Environment variable by setting the key input to
NPM_FLAGS
and set values input to--legacy-peer-deps
. - Once you are done click on the
Deploys
tab menu at the top of the page and then click on theTrigger deploy
button and selectClear cache and deploy site
option.
Let me know the outcome.
Thanks.