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.
Related
I'm trying to install all dependencies in my react project, but when I run npm install I'm getting some errors related to esprima:
npm ERR! 404 Not Found - GET https://codeload.github.com/ariya/esprima/legacy.tar.gz/master
npm ERR! npm ERR! 404
npm ERR! npm ERR! 404 'esprima#https://github.com/ariya/esprima/tarball/master' is not in the npm registry.
npm ERR! npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! npm ERR! 404
npm ERR! npm ERR! 404 Note that you can also install from a
npm ERR! npm ERR! 404 tarball, folder, http url, or git url.
Did anyone experience this error?
I was able to resolve this issue after downgrade my npm version from 7.14.0 to v6.14.13. It may not be the best solution, but it was the only way I could get rid of this problem.
expo install expo-tracking-transparency
Installing 1 other package using npm.
npm install --save expo-tracking-transparency
npm ERR! code E404
npm ERR! 404 Not Found - GET http://registry.npmjs.org/expo-tracking-transparency - Not found
npm ERR! 404
npm ERR! 404 'expo-tracking-transparency#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 exited with non-zero code: 1
I just updated my npm and got rid of some useless packages, but for some reason, I still am running into some weirdness when trying to run this command
kalebamarante$ npm init create-react-app kalebcryptoexchange-app
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/create-create-react-app - Not found
npm ERR! 404
npm ERR! 404 'create-create-react-app#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! /Users/kalebamarante/.npm/_logs/2021-03-09T00_18_58_939Z-debug.log
KALEBS-MacBook-Pro:~ kalebamarante$ npx create-react-app kalebcryptoexchange-app
You are running `create-react-app` 4.0.1, which is behind the latest release (4.0.3).
We no longer support global installation of Create React App.
Please remove any global installs with one of the following commands:
- npm uninstall -g create-react-app
- yarn global remove create-react-app
The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/
npm ERR! code 1
npm ERR! path /Users/kalebamarante
npm ERR! command failed
npm ERR! command sh -c create-react-app kalebcryptoexchange-app
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/kalebamarante/.npm/_logs/2021-03-09T00_20_01_995Z-debug.log
KALEBS-MacBook-Pro:~ kalebamarante$ sh -c create-react-app kalebcryptoexchange-app
kalebcryptoexchange-app: create-react-app: command not found
you should try npx instead of npm init.
npx create-react-app kalebcryptoexchange-app.
You should use npx instead of npm.
npx create-react-app your-app
Now why is that?
When you are using npm command it will get the node packages for you. i.e. You may have installed the package called 'create-react-app' globally using npm. Now to execute that package you have to use npx command.
Your error log shows this line,
npm ERR! 404 'create-create-react-app#latest' is not in the npm registry.
because you are trying to fetch a package instead of creating it using create-react-app.
In short, npm downloads the packages, npx execute a package.
The error is as follows. Any comments are welcome.
npm ERR! code E404 npm ERR! 404 Not Found - GET
https://registry.npmjs.org/bable-preset-react - Not found npm ERR! 404
npm ERR! 404 'bable-preset-react#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!
C:\Users\Vamsi S
Krishna\AppData\Roaming\npm-cache_logs\2020-01-19T17_52_52_549Z-debug.log
It should be https://registry.npmjs.org/babel-preset-react ! Babel, not Bable!
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