Проблемы с установкой VS Code React

$ 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 https://yarnpkg.com/en/docs/cli/add 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.
0
задан 30 May 2021 в 12:16

1 ответ

Ваша версия node.js несовместима с некоторыми реакционными пакетами.

Установите Node.js последнюю версию LTS 14.17.0 , например

curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
0
ответ дан 28 July 2021 в 11:34

Другие вопросы по тегам:

Похожие вопросы: