I have a React project that does not want to run

Everytime i try creating the react app, i get following error:

PS C:UsersTashs NovemberDesktopEvent Management> npm create vite@litenpm error code SELF_SIGNED_CERT_IN_CHAIN
npm error request to https://registry.npmjs.org/create-vite failed, reason: self-signed certificate
in certificate chain

npm error A complete log of this run can be found in: C:UsersTashs NovemberAppDataLocalnpm-cac
he_logs2024-07-31T08_45_49_900Z-debug-0.log
PS C:UsersTashs NovemberDesktopEvent Management> npm create vite@latest
npm error code SELF_SIGNED_CERT_IN_CHAIN
npm error errno SELF_SIGNED_CERT_IN_CHAIN

I tried opening a react folder using the following command prompts :
npm create vite@latest
npm create vite@lite
npx create-react-app events management

in hopes of it creating the actual app but it does not run