lean-stack | Lit-Element Apollo Neo4j | Graph Database library
kandi X-RAY | lean-stack Summary
kandi X-RAY | lean-stack Summary
Lit-Element Apollo Neo4j
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of lean-stack
lean-stack Key Features
lean-stack Examples and Code Snippets
Community Discussions
Trending Discussions on lean-stack
QUESTION
I'm trying to install create-react-app
in my project, but a package.json without a start script is generated, and I get an error "A template was not provided. This is likely because you're using an outdated version of create-react-app.
Please note that global installs of create-react-app are no longer supported." As recommended in other questions regarding this issue, here's what I've already tried:
npm uninstall -g create-react-app
, which create-react-app
then rm -rf [the path that was listed]
(now when I enter which create-react-app
it says which: no create-react-app in .....
, and restarted my computer.
I don't know what else to try. Any help appreciated.
Here is my full error message/what I get when trying to run create-react-app:
...ANSWER
Answered 2019-Dec-18 at 22:10So the best thing to do is to remove create-react-app
globally using npm uninstall create-react-app -g
or yarn global remove create-react-app
because that is likely the reason you're seeing this error message:
This is likely because you're using an outdated version of create-react-app. Please note that global installs of create-react-app are no longer supported.
Once you've removed it, please note you don't need to install create-react-app
globally to initialize a new project, its recommended you use the npx
package runner tool that comes with at least node 5.2
and above. So npx
will basically allow you to run a package without installing it, so on your case create-react-app
.
So to create a new project, just type in : npx create-react-app myapp
and that will initialize your react app.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lean-stack
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page