Skip to content

create-react-app Failed at the [email protected] postinstall script #8441

Closed
@CGawronski

Description

@CGawronski

Windows 10
node version: 12.13.1
npm version: 6.13.7

Log of the failure:

C:\Users\colin\Web_Development\React>npx create-react-app jsx

Creating a new React app in C:\Users\colin\Web_Development\React\jsx.

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

> [email protected] postinstall C:\Users\colin\Web_Development\React\jsx\node_modules\babel-runtime\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"

npm ERR! code ELIFECYCLE
npm ERR! syscall spawn C:\Program Files (x86)\git\bin\bash.exe
npm ERR! file C:\Program Files (x86)\git\bin\bash.exe
npm ERR! path C:\Program Files (x86)\git\bin\bash.exe
npm ERR! errno ENOENT
npm ERR! [email protected] postinstall: `node -e "try{require('./postinstall')}catch(e){}"`
npm ERR! spawn C:\Program Files (x86)\git\bin\bash.exe 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\colin\AppData\Roaming\npm-cache\_logs\2020-02-06T23_30_34_240Z-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 jsx/ from C:\Users\colin\Web_Development\React
Done.

Any help would be appreciated.

Thank you

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