Have you tried to create a new React app using npx create-react-app
and then seen this error message containing “npm warn exec” in your command window? If you get an error when you try and create a new React app then this post will help explain what’s happening.
npm WARN exec The following package was not found and will be installed: create-react-app
What does the “npm WARN exec” message mean?
Then you might be wondering what the problem is. It means that the package create-react-app
is not installed, or at least not available from the directory you are in.
However, the “npm warn exec” message is also saying that it WILL now install the create react app package so that when it completes it’s process and shows you the cursor again it will have installed create-react-app
.
Try to create your React app again
At this point you can try to create your React app again with your original command:
npx create-react-app react-bootstrap-button-example
… and you should find that it creates your React app normally.
Now you will know what to do if you see the message “npm warn exec” when you us npx creat-react-app
.