Skip to content

Why does installing react-scripts by NPM give a ton of warnings, but not when using create-react-app? #9773

Answered by ugultopu
ugultopu asked this question in Q&A
Discussion options

You must be logged in to vote

It is because --loglevel error is being passed to npm on createReactApp.js. When you remove that and compile Create React App, running the custom built Create React App displays all those warnings that are displayed when you run npm on react-scripts. Here is a sample output from a React app created using this custom built Create React App:

create-react-app$ npx create-react-app ../test-cra
Creating a new React app in test-cra.

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

npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm W…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ugultopu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants