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

error running create-react-app -> Cannot install core-js@^3. That is where the error is coming up.

Open miteshkumar77 opened this issue 6 years ago • 4 comments

Describe the bug

C:\mitesh\IED\MainProject\gqlApp>create-react-app client

Creating a new React app in C:\mitesh\IED\MainProject\gqlApp\client.

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

[email protected] postinstall C:\mitesh\IED\MainProject\gqlApp\client\node_modules\babel-runtime\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"

/bin/bash: node: command not found npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file bash npm ERR! errno ENOENT npm ERR! [email protected] postinstall: node -e "try{require('./postinstall')}catch(e){}" npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the [email protected] postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\kumarm4\AppData\Roaming\npm-cache_logs\2020-03-10T20_17_19_781Z-debug.log

Aborting installation. npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

Deleting generated file... node_modules Deleting generated file... package.json Deleting client/ from C:\mitesh\IED\MainProject\gqlApp Done.

Did you try recovering your dependencies?

(Write your answer here.)

Which terms did you search for in User Guide?

(Write your answer here if relevant.)

Environment

Environment Info:

current version of create-react-app: 3.4.0 running from C:\Users\kumarm4\AppData\Roaming\npm\node_modules\create-react-app

System: OS: Windows 10 10.0.18363 CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz Binaries: Node: 12.13.1 - C:\Program Files\nodejs\node.EXE Yarn: Not Found npm: 6.14.2 - C:\Users\kumarm4\AppData\Roaming\npm\npm.CMD Browsers: Edge: 44.18362.449.0 Internet Explorer: 11.0.18362.1 npmPackages: react: Not Found react-dom: Not Found react-scripts: Not Found npmGlobalPackages: create-react-app: Not Found

Here is my file structure: gqlApp │ └───server │ ├───models │ ├───node_modules │ │ ├───accepts │ │ ├───array-flatten │ │ ├───bl │ │ │ └───test │ │ ├───bluebird │ │ │ └───js │ │ │ ├───browser │ │ │ └───release │ │ ├───body-parser │ │ │ └───lib │ │ │ └───types │ │ ├───bson │ │ │ ├───browser_build │ │ │ └───lib │ │ │ └───bson │ │ │ └───parser │ │ ├───bytes │ │ ├───content-disposition │ │ ├───content-type │ │ ├───cookie │ │ ├───cookie-signature │ │ ├───core-util-is │ │ │ └───lib │ │ ├───debug │ │ │ └───src │ │ ├───denque │ │ ├───depd │ │ │ └───lib │ │ │ ├───browser │ │ │ └───compat │ │ ├───destroy │ │ ├───ee-first │ │ ├───etag │ │ ├───express-graphql │ │ │ └───node_modules │ │ │ ├───http-errors │ │ │ ├───inherits │ │ │ └───raw-body │ │ ├───forwarded │ │ ├───fresh │ │ ├───graphql │ │ │ ├───error │ │ │ ├───execution │ │ │ ├───jsutils │ │ │ ├───language │ │ │ ├───polyfills │ │ │ ├───subscription │ │ │ ├───tsutils │ │ │ ├───type │ │ │ ├───utilities │ │ │ └───validation │ │ │ └───rules │ │ ├───http-errors │ │ ├───iconv-lite │ │ │ ├───encodings │ │ │ │ └───tables │ │ │ └───lib │ │ ├───inherits │ │ ├───ipaddr.js │ │ │ └───lib │ │ ├───isarray │ │ ├───iterall │ │ ├───kareem │ │ │ └───test │ │ ├───lodash │ │ │ └───fp │ │ ├───media-typer │ │ ├───memory-pager │ │ ├───merge-descriptors │ │ ├───methods │ │ ├───mime │ │ │ └───src │ │ ├───mime-db │ │ ├───mime-types │ │ ├───mongodb │ │ │ └───lib │ │ │ ├───async │ │ │ ├───bulk │ │ │ ├───cmap │ │ │ ├───core │ │ │ │ ├───auth │ │ │ │ ├───connection │ │ │ │ ├───sdam │ │ │ │ ├───tools │ │ │ │ ├───topologies │ │ │ │ └───wireprotocol │ │ │ ├───gridfs │ │ │ ├───gridfs-stream │ │ │ ├───operations │ │ │ └───topologies │ │ ├───mongoose │ │ │ ├───dist │ │ │ ├───lib │ │ │ │ ├───cast │ │ │ │ ├───cursor │ │ │ │ ├───drivers │ │ │ │ │ ├───browser │ │ │ │ │ └───node-mongodb-native │ │ │ │ ├───error │ │ │ │ ├───helpers │ │ │ │ │ ├───cursor │ │ │ │ │ ├───discriminator │ │ │ │ │ ├───document │ │ │ │ │ ├───indexes │ │ │ │ │ ├───model │ │ │ │ │ ├───populate │ │ │ │ │ ├───projection │ │ │ │ │ ├───query │ │ │ │ │ ├───schema │ │ │ │ │ ├───schematype │ │ │ │ │ └───update │ │ │ │ ├───options │ │ │ │ ├───plugins │ │ │ │ ├───schema │ │ │ │ │ └───operators │ │ │ │ └───types │ │ │ ├───node_modules │ │ │ │ └───ms │ │ │ └───tools │ │ ├───mongoose-legacy-pluralize │ │ ├───mpath │ │ │ ├───lib │ │ │ └───test │ │ ├───mquery │ │ │ ├───lib │ │ │ │ └───collection │ │ │ ├───node_modules │ │ │ │ └───debug │ │ │ │ └───src │ │ │ └───test │ │ │ └───collection │ │ ├───ms │ │ ├───negotiator │ │ │ └───lib │ │ ├───on-finished │ │ ├───parseurl │ │ ├───path-to-regexp │ │ ├───process-nextick-args │ │ ├───proxy-addr │ │ ├───qs │ │ │ ├───dist │ │ │ ├───lib │ │ │ └───test │ │ ├───range-parser │ │ ├───raw-body │ │ ├───readable-stream │ │ │ ├───doc │ │ │ │ └───wg-meetings │ │ │ └───lib │ │ │ └───internal │ │ │ └───streams │ │ ├───regexp-clone │ │ │ └───test │ │ ├───require_optional │ │ │ └───test │ │ │ └───nestedTest │ │ ├───resolve-from │ │ ├───safe-buffer │ │ ├───safer-buffer │ │ ├───saslprep │ │ │ ├───lib │ │ │ └───test │ │ ├───semver │ │ │ └───bin │ │ ├───setprototypeof │ │ │ └───test │ │ ├───sift │ │ │ ├───coverage │ │ │ ├───lib │ │ │ ├───src │ │ │ └───test │ │ ├───sliced │ │ ├───sparse-bitfield │ │ ├───statuses │ │ ├───string_decoder │ │ │ └───lib │ │ ├───toidentifier │ │ ├───type-is │ │ ├───unpipe │ │ ├───util-deprecate │ │ ├───utils-merge │ │ └───vary │ └───schema ``

miteshkumar77 avatar Mar 10 '20 20:03 miteshkumar77

Im having the same issue running yarn create react-app and npm init react-app and using npx only install the dependencies without source folder

TheRealArbiter avatar Mar 15 '20 13:03 TheRealArbiter

Mismo problema, además el comando no finaliza al ejecutarlo y se queda colgado.

DieselEirik avatar Apr 01 '20 01:04 DieselEirik

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

stale[bot] avatar May 01 '20 06:05 stale[bot]

This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue.

stale[bot] avatar May 06 '20 07:05 stale[bot]