Error 404 when trying to create a new React app - reactjs

I get this error while trying to create a new React app. Installing other components works fine.
Tried all the other posts on StackOverflow. Changed the connection too. Still doesn't work.
Thanks :)
C:\Users\ASUS\Desktop\reactproject1>npx create-react-app myapp
Creating a new React app in C:\Users\ASUS\Desktop\reactproject1\myapp.
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 http://registry.npmjs.org/error-ex
npm ERR! 404
npm ERR! 404 'error-ex#^1.3.1' 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 'parse-json'
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! C:\Users\ASUS\AppData\Roaming\npm-cache\_logs\2020-02-12T07_33_08_955Z-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 myapp/ from C:\Users\ASUS\Desktop\reactproject1
Done.

https://registry.npmjs.org/error-ex is down in South Asian region for some reason, which is the cause of the issue.
If you have a VPN connection, Try connecting to US region. Or wait till it gets back online. :)

Related

create-react-app aborting - ESLINT not found [duplicate]

This question already has answers here:
404 Not Found when trying to install ESLint 8.4.4 with create-react-app
(2 answers)
Closed 8 months ago.
Attempting to create a new app
npx create-react-app my-test-app
and getting this error in the console - unsurprisingly the esLint.tgz is 404ing in a browser. How do you get around this?
Running npm 8.13.2 and node 18.4.0
Can't seem to find any similar solutions - tried clearing cache too. Any ideas?
npx create-react-app my-test-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/#types/eslint/-/eslint-8.4.4.tgz - Not found
npm ERR! 404
npm ERR! 404 '#types/eslint#https://registry.npmjs.org/#types/eslint/-/eslint-8.4.4.tgz' is not in this registry.
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! C:\Users\<user>\AppData\Local\npm-cache\_logs\2022-06-30T19_58_36_128Z-debug-0.log
Aborting installation.
npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed
Repository error #eslint, see Github: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/61032
Indeed, it's not us. It's them.
NPMJS Status
tarbells down

Error occurred when creating react application using vs code, How to solve this?

npm ERR! code E403
npm ERR! 403 403 Forbidden - GET https://registry.npmjs.org/react-scripts
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 is a package version that is forbidden by your security policy.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Alien\AppData\Roaming\npm-cache_logs\2022-05-21T11_17_48_470Z-debug.log
Aborting installation.
npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... package.json
Deleting mern-excercise-tracker/ from C:\Users\Alien\Desktop\React\project
Done.
I think you are new to React so go through this and configure your application first
before https://www.freecodecamp.org/news/install-react-with-create-react-app/

Unable to create react set up on macbook m1

I am unable to create a react app on mac m1 . I don't know how to proceed with the following problem.
prateekshukla#iamkeetarp shopping-app % npx create-react-app-frontend
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/create-react-app-frontend - Not found
npm ERR! 404
npm ERR! 404 'create-react-app-frontend#latest' is not in this registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
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! /Users/prateekshukla/.npm/_logs/2022-03-06T14_38_24_143Z-debug-0.log
You're trying to use a package that does not exist :
GET https://registry.npmjs.org/create-react-app-frontend - Not found
The package you are looking for is create-react-app (no -frontend).
So what you should write is:
npx create-react-app my-app
Check out React's documentation for more info.

While creating react app uisng npx i got following error . How can i resolve this

Creating a new React app in /home/rajesh/Desktop/practice3/hhh.
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 Object Not Found - GET https://skimdb.npmjs.com/registry/lodash.sortby/-/lodash.sortby-4.7.0.tgz - not_found
npm ERR! 404
npm ERR! 404 'lodash.sortby#https://skimdb.npmjs.com/registry/lodash.sortby/-/lodash.sortby-4.7.0.tgz' is not in this registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
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/rajesh/.npm/_logs/2022-01-22T11_39_41_761Z-debug-0.log
Aborting installation.
npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... package.json
Deleting hhh/ from /home/rajesh/Desktop/practice3
Done.
. it did't created any folder or files.

Could not find a declaration file for module 'react-bootstrap-table-next'

I'm trying to run 'react-bootstrap-table-next' with my reactjs app. I'm having a problem
root#ubuntu:/home/rin/sc-deal/client# npm install #types/react-bootstrap-table-next
root#ubuntu:/home/rin/sc-deal/client# npm install #types/react-bootstrap-table-next
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/#types%2freact-bootstrap-table-next - Not found
npm ERR! 404
npm ERR! 404 '#types/react-bootstrap-table-next#latest' 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
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! /root/.npm/_logs/2019-06-24T12_58_36_545Z-debug.log
root#ubuntu:/home/rin/sc-deal/client#
also error in my app because of it:
react-bootstrap-table-next doesn't exist in the #types scope.
You should instead use react-bootstrap-table.
npm install --save #types/react-bootstrap-table
I got the same issue in my project.
When I installed this package first time i used below command.
$ yarn add #types/react-bootstrap-table-next
It did not work. so i removed it and re-installed it with below command.
$ yarn add react-bootstrap-table-next #types/react-bootstrap-table-next
This worked fine for me. In my project i used typescript.
Refer this link also if it is useful: https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/989

Resources