Error while creating new react application with npx create-react-app my-app

I have tried to create a new react application with the command

npx create-react-app my-app

It take some time to load but while installing the packages I got the following error:

npx: installed 67 in 3.337s

Creating a new React app in /home/Github/my-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@svgr%2fbabel-preset - Not found
npm ERR! 404 
npm ERR! 404  '@svgr/babel-preset@^5.5.0' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of '@svgr/plugin-jsx'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/.npm/_logs/2021-10-07T17_20_12_439Z-debug.log

Aborting installation.
  npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

Deleting generated file... package.json
Deleting my-app/ from /home/Github/Amazon-Clone
Done.

There are some discussion on github but it didn’t work well with me. I have retried many times and also tried to create it in new folder.

Answer

There might be service outage of npmjs. You can check the status of the npm from their official website. Here’s the link: https://status.npmjs.org/