Home > Net >  create-react-app is behind the latest version
create-react-app is behind the latest version

Time:12-15

I'm trying to run:

npx @contentful/create-contentful-app init contentful-refs

However this fails and throws the following errors:

You are running create-react-app 4.0.3, which is behind the latest release (5.0.0). We no longer support global installation of Create React App.

I went ahead and deleted npm, nvm, npx, create-react-app, create-contentful-app. I checked that they were not on my machine, then I updated to the latest versions of each. and tried running the initial command. I'm still getting the same issue, and now after installing the latest version of create-react-app, create-react-app is still not found on my machine. Not sure what to do here, any help would be greatly appreciated.

CodePudding user response:

Try this command npx [email protected] app-name

CodePudding user response:

I solved this issue by doing the following things:-

  1. Updating my node version to v14.15.0 using nvm(https://phoenixnap.com/kb/update-node-js-version)

  2. updating my npm version

    npm i -g npm@latest

  3. npx [email protected] your-app-name

  • Related