Coder Social home page Coder Social logo

npx create-react-app about create-react-app HOT 9 OPEN

dinesh22js avatar dinesh22js commented on May 1, 2024
npx create-react-app

from create-react-app.

Comments (9)

pefka avatar pefka commented on May 1, 2024 1

Change to vite; npx is not an faster one, tbh

there is a link to compare VITE with WEBPACK, and we are talking about npx (NPX stands for Node Package eXecute. It is simply an NPM package runner)

from create-react-app.

nembenike avatar nembenike commented on May 1, 2024

use vite

from create-react-app.

tejaswi-devalla avatar tejaswi-devalla commented on May 1, 2024

Have you tried running it on wsl2?
If you did and the issue still persists try updating your create-react-app package (or) delete it and reinstall it globally.
Reinstall npm, and node

from create-react-app.

pefka avatar pefka commented on May 1, 2024

Reinstall npm, and node

Horror, advice like “reinstall windows”

from create-react-app.

niranjan404 avatar niranjan404 commented on May 1, 2024

npx create-react-app This command is working very slowly Give me any Solution this problem

Change to vite; npx is not an faster one, tbh

https://www.linkedin.com/pulse/exploring-npx-create-react-app-vs-vite-choosing-right-amitha-h-hp4yf/
https://v3.vitejs.dev/guide/

from create-react-app.

niranjan404 avatar niranjan404 commented on May 1, 2024

Have you tried running it on wsl2? If you did and the issue still persists try updating your create-react-app package (or) delete it and reinstall it globally. Reinstall npm, and node

Reinstalling won't solve this, npx cra is slow af since it uses webpack, and bundles the application before it makes ready to listen.

from create-react-app.

pefka avatar pefka commented on May 1, 2024

Change to vite; npx is not an faster one, tbh

There is no benchmark in your link, how much faster is 1%? by 2% by 10? some facts are needed, confirmed

I waited about 6 minutes and the installation went through npx, it just took a long time, but it was completed successfully

from create-react-app.

niranjan404 avatar niranjan404 commented on May 1, 2024

Change to vite; npx is not an faster one, tbh

There is no benchmark in your link, how much faster is 1%? by 2% by 10? some facts are needed, confirmed

I waited about 6 minutes and the installation went through npx, it just took a long time, but it was completed successfully

Simply speaking, vite is quicker because it uses module preloading to achieve a faster build.

Read on to better understand with graphs: https://kinsta.com/blog/vite-vs-webpack/. More thorough explanations can be obtained.

Trust me, I was using npx cra Then, after switching to vite, production build and deploy times rose, as I saw.

from create-react-app.

niranjan404 avatar niranjan404 commented on May 1, 2024

Change to vite; npx is not an faster one, tbh

there is a link to compare VITE with WEBPACK, and we are talking about npx (NPX stands for Node Package eXecute. It is simply an NPM package runner)

Well, I indeed know what npx is, since cra (create-react-app) uses webpack and NPX (Node package eXecute) runs the cra to initiate the app, it is mentioned as WEBPACK, basically it means the NPX.

If you wish, you can just initiate two new apps using vite and npx and watch which one builds quicker.

from create-react-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.