create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

public ,src, script directory is not creating while installing create-react-app

Open vivekanandpandey opened this issue 5 years ago • 16 comments

on run command npx create-react-app my-app not creating public, src and script folder, only node-modules, package.json and yarn.lock file is coming

OS: windows10 node: V12.14.0 npm/npx : 6.13.4

C:\Users\vivek_Vishu\Desktop\project>npx create-react-app my-app

Creating a new React app in C:\Users\vivek_Vishu\Desktop\project\my-app.

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

yarn add v1.22.0 [1/4] Resolving packages... [2/4] Fetching packages... info [email protected]: The platform "win32" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. info [email protected]: The platform "win32" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning "react-scripts > @typescript-eslint/eslint-plugin > [email protected]" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta". [4/4] Building fresh packages... success Saved lockfile. success Saved 13 new dependencies. info Direct dependencies ├─ [email protected] ├─ [email protected] ├─ [email protected] └─ [email protected] info All dependencies ├─ @babel/[email protected] ├─ @babel/[email protected] ├─ @babel/[email protected] ├─ @babel/[email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] ├─ [email protected] └─ [email protected] Done in 223.41s.

vivekanandpandey avatar May 23 '20 09:05 vivekanandpandey

having same problem

ikanip11 avatar May 24 '20 07:05 ikanip11

i'm having the same problem.Has anyone resolved it yet?

mohit-xi avatar May 24 '20 14:05 mohit-xi

@ikanip11 @mohit-xi seems like there's something wrong with the installation of create-react-app using npx, I tried with yarn and everything went well

yarn create react-app my-personal-page --typescript

gianpieroc avatar May 24 '20 18:05 gianpieroc

I'm still facing the same problem it did nothing for me I've even done a fresh installation of node but still the problem is there

mohit-xi avatar May 24 '20 18:05 mohit-xi

@ikanip11 tried with yarn also getting same issue.

vivekanandpandey avatar May 24 '20 19:05 vivekanandpandey

same issue

Vikas2426 avatar May 24 '20 22:05 Vikas2426

Try npm install create-react-app installing it before may solve your problem and you can directly call create-react-app to create the app

ativin4 avatar May 26 '20 12:05 ativin4

This also dosent work for me

mohit-xi avatar May 26 '20 13:05 mohit-xi

i'm having the same problem.Has anyone resolved it yet?

Parvez-lexx avatar May 27 '20 11:05 Parvez-lexx

I reset my computer and it solved the issue for me.Good for me that I didn't have important stuff on my computer.

mohit-xi avatar May 27 '20 11:05 mohit-xi

Hi all, this is very strange - sorry you're hitting this issue.

Can you please ensure that you don't have a global install of create-react-app? Also try clearing your npm/Yarn cache?

mrmckeb avatar May 28 '20 10:05 mrmckeb

same issue. "yarn create react-app my-app" I use git bash on windows and it doesn't work. But using Ubuntu on Windows, it run

loinguyenthanh avatar Jun 01 '20 17:06 loinguyenthanh

I uninstalled 64-bit version of node and installed the 32-bit version and it worked.

pawanfalak avatar Jun 18 '20 02:06 pawanfalak

same issue. "yarn create react-app my-app"

using OS, it run

lili1230120 avatar Jun 20 '20 10:06 lili1230120

#Ensure Node.js and npm installed properly use npx to create react app Check for Errors During Installation

Asha226 avatar Sep 30 '24 10:09 Asha226

I'm still facing the same problem it did nothing for me I've even done a fresh installation of node but still the problem is there

Ensure Node.js and npm Are Installed Properly Use npx to Create React App

Asha226 avatar Sep 30 '24 10:09 Asha226