Vs Code React Installation Issues

Vs Code React Installation Issues
$ npx create-react-app my-app
npx: installed 67 in 8.478s

Creating a new React app in /home/unaiz/Desktop/mango/my-app.

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

yarn add v1.22.5
[1/4] Resolving packages...
[2/4] Fetching packages...
error @typescript-eslint/eslint-plugin@4.15.2: The engine "node" is incompatible with this module. Expected version "^10.12.0 || >=12.0.0". Got "11.15.0"
error Found incompatible module.
info Visit  for documentation about this command.

Aborting installation.
  yarnpkg add --exact react react-dom react-scripts cra-template --cwd /home/unaiz/Desktop/mango/my-app has failed.

Deleting generated file... package.json
Deleting generated file... yarn.lock
Done.

1 Answer

Your node.js version is incompatible with some react packages.

Install the Node.js latest LTS version 14.17.0, like this

curl -fsSL  | sudo -E bash -
sudo apt-get install -y nodejs

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sophia Al-Mansoor
Author

Sophia Al-Mansoor

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.