Skip to content

Create React App Fails - CoreJS postinstall error #8752

@KnoDoctor

Description

@KnoDoctor

Describe the bug

Trying to run create-react-app via the following command:

npx create-react-app test-nginx-deploy

The process starts but produces the following errors:

npx: installed 99 in 13.005s

Creating a new React app in C:\Users\jeff.barfield\Documents\B&R Fun\nginx Testing\test-nginx-deploy.

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

C:\Users\jeff.barfield\Documents\B&R Fun\nginx Testing\test-nginx-deploy\react-scripts -> C:\Users\jeff.barfield\Documents\B&R Fun\nginx Testing\test-nginx-deploy\node_modules\react-scripts\bin\react-scripts.js

> core-js@2.6.11 postinstall C:\Users\jeff.barfield\Documents\B&R Fun\nginx Testing\test-nginx-deploy\node_modules\react-scripts\node_modules\babel-runtime\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"


> core-js@3.6.4 postinstall C:\Users\jeff.barfield\Documents\B&R Fun\nginx Testing\test-nginx-deploy\node_modules\react-scripts\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"


> core-js-pure@3.6.4 postinstall C:\Users\jeff.barfield\Documents\B&R Fun\nginx Testing\test-nginx-deploy\node_modules\react-scripts\node_modules\core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"

+ cra-template@1.0.3
+ react@16.13.1
+ react-scripts@3.4.1
+ react-dom@16.13.1
added 1591 packages from 750 contributors in 117.738s
Missing dependencies in package.json

Did you try recovering your dependencies?

Yes

Which terms did you search for in User Guide?

(Write your answer here if relevant.)

Environment

current version of create-react-app: 3.4.1
running from C:\Users\jeff.barfield\AppData\Roaming\npm-cache_npx\14772\node_modules\create-react-app

System:
OS: Windows 10 10.0.18363
CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Binaries:
Node: 12.16.1 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 6.13.4 - C:\Program Files\nodejs\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

Steps to reproduce

(Write your steps here:)

Expected behavior

I should get the default create react app application.

Actual behavior

I get a partial project with the following file structure:

image

and the following in node_modules:

image

Reproducible demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions