Installation Error create react app

I got approximately the same problem and by now I’ve tried so many solutions from github/stackoverflow (while not really understanding them) that I have no idea what I’ve done anymore and definitely not what to do :frowning:

When I used npm/npx create-react-app jammming (because that’s the project I’m at now - it did work before when I did the Ravenous project), it only installed the node_modules folder, package.json and package-lock.json. I’m also getting this error:

Creating a new React app in /Users/myusername/Desktop/react-jammming/jammming.

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


> [email protected] install /Users/myusername/Desktop/react-jammming/jammming/node_modules/chokidar/node_modules/fsevents
> node-gyp rebuild

No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 19.0.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/myusername/Desktop/react-jammming/jammming/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v12.14.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok 

> [email protected] install /Users/myusername/Desktop/react-jammming/jammming/node_modules/jest-haste-map/node_modules/fsevents
> node-gyp rebuild

No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 19.0.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/myusername/Desktop/react-jammming/jammming/node_modules/jest-haste-map/node_modules/fsevents
gyp ERR! node -v v12.14.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok 

> [email protected] postinstall /Users/myusername/Desktop/react-jammming/jammming/node_modules/babel-runtime/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"


> [email protected] postinstall /Users/myusername/Desktop/react-jammming/jammming/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"


> [email protected] postinstall /Users/myusername/Desktop/react-jammming/jammming/node_modules/core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"

+ [email protected]
+ [email protected]
+ [email protected]
added 1535 packages from 749 contributors and audited 906205 packages in 49.503s

32 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities


A template was not provided. This is likely because you're using an outdated version of create-react-app.
Please note that global installs of create-react-app are no longer supported.

I already tried reinstalling Node and redoing npm install -g create-react-app. I got a bunch of other errors then - could try reproducing those if it helps in advising me.
I also tried that sudo command TO mentioned, but it didn’t fix the problem for me either.
I’d love to be able to FINALLY work on the Jammming project :frowning:
Could you please guide me step by step so I can install it properly and create a new React app? I’m completely lost at the moment.

not even remotely close

install xcode

Try this. It worked for me.

npx --ignore-existing create-react-app jammming

Hi, i’m also facing the same issue. you got any fix? :slightly_frowning_face:

@willemijnbb8 my guess is that you, like myself, updated your Mac OS to Catelina in the last few months. Almost every time I update my Mac OS command line tools become non-cooperative. Usually running xcode-select --install will fix any issues but when I tried it this time I got this message:

xcode-select: error: command line tools are already installed, use "Software Update" to install updates

This article led me to a solution.

Long story short:

  • Get the path to the location of your command line tools
xcode-select --print-path
  • Remove them from your system. If the result of running the command above is /Library/Developer/CommandLineTools, run
sudo rm -r -f /Library/Developer/CommandLineTools
  • Reinstall command line tools
xcode-select --install