473,320 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Npm create-react-app not working. Usage: npm<command>

10 Byte
How do I fix this npm create react app issue
Attached Files
File Type: docx PS C.docx (11.3 KB, 205 views)
Oct 1 '20 #1

✓ answered by Sumit Sahu

Hi Joshuaschist,

So you are using
Expand|Select|Wrap|Line Numbers
  1.  npm create-react-app react-timer
command to create new react app with the name "react-timer". Here "create-react-app" is a node module, which you have to install it first either locally or globally, then run the command
Expand|Select|Wrap|Line Numbers
  1. npm install create-react-app react-timer
. If you miss the "install" in command, then how would 'npm' know, what to do with 'create-react-app' that means, whether to install it or uninstall it. Or you are trying to create a react project then just use
Expand|Select|Wrap|Line Numbers
  1.  npx create-react-app my-app 
. Follow this get started guide to work with react https://create-react-app.dev/docs/getting-started/ ..

Thanks,
Sumit Sahu

3 5498
Hi Joshuaschist,

So you are using
Expand|Select|Wrap|Line Numbers
  1.  npm create-react-app react-timer
command to create new react app with the name "react-timer". Here "create-react-app" is a node module, which you have to install it first either locally or globally, then run the command
Expand|Select|Wrap|Line Numbers
  1. npm install create-react-app react-timer
. If you miss the "install" in command, then how would 'npm' know, what to do with 'create-react-app' that means, whether to install it or uninstall it. Or you are trying to create a react project then just use
Expand|Select|Wrap|Line Numbers
  1.  npx create-react-app my-app 
. Follow this get started guide to work with react https://create-react-app.dev/docs/getting-started/ ..

Thanks,
Sumit Sahu
Oct 3 '20 #2
Joshuaschist
10 Byte
Run npm install create-react-app first, then "npm" shouldn't be added to the create-react-app again..

Then create-react-app react-timer should run next after installation of npm i create-react-app
Oct 4 '20 #3
anmoldhima5
2 2Bits
First run
npm cache clean -f

then try with these command

Install the global package.

npm install create-react-app -g

Create a new project called demo-app:

create-react-app <Project Name>

create-react-app demo-app

References : How to create ReactJS Application
Jan 28 '21 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: rbt | last post by:
Would a Python process consume more memory on a PC with lots of memory? For example, say I have the same Python script running on two WinXP computers that both have Python 2.4.0. One computer has...
2
by: tomvr | last post by:
Hello I have noticed some 'weird' memory usage in a vb.net windows app The situation is as follows I have an app (heavy on images) with 2 forms (actually there are more forms and on starting...
2
by: Jarvis | last post by:
I've made a testing program to test the memory usage of some Data Forms. I create a MDI parent form with one single MDI child form, which is a Data Form generated by .NET Data Form Wizard. To...
20
by: Philip Carnstam | last post by:
How come .Net applications use so much memory? Every application I compile uses at least 10 MB of memory, even the ones consisting of only a form and nothing else. If I minimize them though the...
2
by: sean | last post by:
Hi, I notice if I run my application, the Windows Task Manager shows the application using around 20MB of memory. However, after I minimized the application and maximize/restore the...
8
by: Greg Merideth | last post by:
I've written a basic windows service to provide some helper xml functions for my web methods and even thou the service is only about 1k lines long with 1 timer, its mem usage is 10m and its vm mem...
3
by: Jeff | last post by:
I've been working on an application for a while now that has been giving me some trouble when it comes to working with a picturebox and memory usage. My company deals with digital imaging, so we...
3
by: sebapi | last post by:
Hello! I have windows forms app (C# 2.0) which take about 60MB ram. I noticed when I minimize it then memory usage drops to about 4MB. When I maximize it then memory usage is about 16MB and then...
3
by: 06michwats | last post by:
hello i have a windows vista pc with a dual core pentium 1.8ghz processor and 2 GB of ram some times randomly when i'm working the cpu usage will change to 50% all on one core (so one core is at...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.