admin管理员组

文章数量:1022761

All is in the title: I am trying to create a react-app following this tutorial:

But it fails immediately saying the following:


[user@localhost workspace]$ create-react-app projectname
Creating a new React app in projectpath/projectname.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
yarn add v1.6.0
info No lockfile found.
[1/4] Resolving packages...
warning react-scripts > workbox-webpack-plugin > workbox-build > strip-ments > babel-plugin-transform-object-rest-spread > babel-runtime > [email protected]: core-js@<3 is no longer maintained and not remended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > [email protected]: use String.prototype.padStart()
[2/4] Fetching packages...
error [email protected]: The engine "node" is inpatible with this module. Expected version "^8.10.0 || ^10.13.0 || >=11.10.1".
error Found inpatible module
info Visit  for documentation about this mand.

Aborting installation.
  yarnpkg add --exact react react-dom react-scripts --cwd projectpath/projectname has failed.

From "The engine "node" is inpatible with this module. Expected version" I deduce that my node is not up to date. However:

sudo n stable gives me: installed : v12.13.1 to /usr/local/bin/node active : v10.16.3 at /bin/node

nvm use stable gives me: Now using node v10.0.0 (npm v6.13.4)

node -v gives me: v10.0.0

Anyone has an idea to solve this problem? Thank you in advance for your answers.

All is in the title: I am trying to create a react-app following this tutorial: https://github./facebook/create-react-app

But it fails immediately saying the following:


[user@localhost workspace]$ create-react-app projectname
Creating a new React app in projectpath/projectname.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
yarn add v1.6.0
info No lockfile found.
[1/4] Resolving packages...
warning react-scripts > workbox-webpack-plugin > workbox-build > strip-ments > babel-plugin-transform-object-rest-spread > babel-runtime > [email protected]: core-js@<3 is no longer maintained and not remended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > [email protected]: use String.prototype.padStart()
[2/4] Fetching packages...
error [email protected]: The engine "node" is inpatible with this module. Expected version "^8.10.0 || ^10.13.0 || >=11.10.1".
error Found inpatible module
info Visit https://yarnpkg./en/docs/cli/add for documentation about this mand.

Aborting installation.
  yarnpkg add --exact react react-dom react-scripts --cwd projectpath/projectname has failed.

From "The engine "node" is inpatible with this module. Expected version" I deduce that my node is not up to date. However:

sudo n stable gives me: installed : v12.13.1 to /usr/local/bin/node active : v10.16.3 at /bin/node

nvm use stable gives me: Now using node v10.0.0 (npm v6.13.4)

node -v gives me: v10.0.0

Anyone has an idea to solve this problem? Thank you in advance for your answers.

Share Improve this question edited Dec 16, 2019 at 14:33 ava_punksmash asked Dec 16, 2019 at 14:22 ava_punksmashava_punksmash 4171 gold badge6 silver badges15 bronze badges 5
  • 1 What does node -v give? – user9572013 Commented Dec 16, 2019 at 14:28
  • 1 [email protected] can be used with node 10.13.0, or greater than 11.10.1 version. Have you tried to install 10.13.0 or a greater version? – Jose Vasquez Commented Dec 16, 2019 at 14:37
  • 1 try to use yarn with --ignore-engines switch. – Zydnar Commented Dec 16, 2019 at 14:39
  • @JoseVasquez actually I realized I was using sudo n stable but it does not give me the last version for node. I just used sudo n latest which gives me : ` installed : v13.3.0 to /usr/local/bin/node active : v10.16.3 at /bin/node ` Do you know how I can make the "installed" version the "active" one? – ava_punksmash Commented Dec 16, 2019 at 14:47
  • @Zydnar I just tried your solution, unfortunately the issue stays :/ Thank you for the suggestion though – ava_punksmash Commented Dec 16, 2019 at 14:50
Add a ment  | 

2 Answers 2

Reset to default 1

OK I finally found how to use the version I want thanks to the following resources https://alligator.io/nodejs/node-version-manager/

I don't know why I was always stuck with the version 10.0.0. I even uninstalled and reinstalled npm and node specifying I wanted the last version of node and it reinstalled me the 10.0.0 version...

The link above provide the following magic mand:

nvm install 12

It downloads AND setup the version 12 of node as ACTIVE:

"Upon running each mand, nvm will download the version of Node.js from the official website and install it. Once installed, it will also set the version you just installed as the active version."

I found an issue on that topic on GitHub.

The last ment says that you have to run all these mands:

npm install npm@latest -g
sudo npm cache clean -f
sudo npm install -g n
sudo n stable

and then you should be fine

All is in the title: I am trying to create a react-app following this tutorial:

But it fails immediately saying the following:


[user@localhost workspace]$ create-react-app projectname
Creating a new React app in projectpath/projectname.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
yarn add v1.6.0
info No lockfile found.
[1/4] Resolving packages...
warning react-scripts > workbox-webpack-plugin > workbox-build > strip-ments > babel-plugin-transform-object-rest-spread > babel-runtime > [email protected]: core-js@<3 is no longer maintained and not remended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > [email protected]: use String.prototype.padStart()
[2/4] Fetching packages...
error [email protected]: The engine "node" is inpatible with this module. Expected version "^8.10.0 || ^10.13.0 || >=11.10.1".
error Found inpatible module
info Visit  for documentation about this mand.

Aborting installation.
  yarnpkg add --exact react react-dom react-scripts --cwd projectpath/projectname has failed.

From "The engine "node" is inpatible with this module. Expected version" I deduce that my node is not up to date. However:

sudo n stable gives me: installed : v12.13.1 to /usr/local/bin/node active : v10.16.3 at /bin/node

nvm use stable gives me: Now using node v10.0.0 (npm v6.13.4)

node -v gives me: v10.0.0

Anyone has an idea to solve this problem? Thank you in advance for your answers.

All is in the title: I am trying to create a react-app following this tutorial: https://github./facebook/create-react-app

But it fails immediately saying the following:


[user@localhost workspace]$ create-react-app projectname
Creating a new React app in projectpath/projectname.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
yarn add v1.6.0
info No lockfile found.
[1/4] Resolving packages...
warning react-scripts > workbox-webpack-plugin > workbox-build > strip-ments > babel-plugin-transform-object-rest-spread > babel-runtime > [email protected]: core-js@<3 is no longer maintained and not remended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > [email protected]: use String.prototype.padStart()
[2/4] Fetching packages...
error [email protected]: The engine "node" is inpatible with this module. Expected version "^8.10.0 || ^10.13.0 || >=11.10.1".
error Found inpatible module
info Visit https://yarnpkg./en/docs/cli/add for documentation about this mand.

Aborting installation.
  yarnpkg add --exact react react-dom react-scripts --cwd projectpath/projectname has failed.

From "The engine "node" is inpatible with this module. Expected version" I deduce that my node is not up to date. However:

sudo n stable gives me: installed : v12.13.1 to /usr/local/bin/node active : v10.16.3 at /bin/node

nvm use stable gives me: Now using node v10.0.0 (npm v6.13.4)

node -v gives me: v10.0.0

Anyone has an idea to solve this problem? Thank you in advance for your answers.

Share Improve this question edited Dec 16, 2019 at 14:33 ava_punksmash asked Dec 16, 2019 at 14:22 ava_punksmashava_punksmash 4171 gold badge6 silver badges15 bronze badges 5
  • 1 What does node -v give? – user9572013 Commented Dec 16, 2019 at 14:28
  • 1 [email protected] can be used with node 10.13.0, or greater than 11.10.1 version. Have you tried to install 10.13.0 or a greater version? – Jose Vasquez Commented Dec 16, 2019 at 14:37
  • 1 try to use yarn with --ignore-engines switch. – Zydnar Commented Dec 16, 2019 at 14:39
  • @JoseVasquez actually I realized I was using sudo n stable but it does not give me the last version for node. I just used sudo n latest which gives me : ` installed : v13.3.0 to /usr/local/bin/node active : v10.16.3 at /bin/node ` Do you know how I can make the "installed" version the "active" one? – ava_punksmash Commented Dec 16, 2019 at 14:47
  • @Zydnar I just tried your solution, unfortunately the issue stays :/ Thank you for the suggestion though – ava_punksmash Commented Dec 16, 2019 at 14:50
Add a ment  | 

2 Answers 2

Reset to default 1

OK I finally found how to use the version I want thanks to the following resources https://alligator.io/nodejs/node-version-manager/

I don't know why I was always stuck with the version 10.0.0. I even uninstalled and reinstalled npm and node specifying I wanted the last version of node and it reinstalled me the 10.0.0 version...

The link above provide the following magic mand:

nvm install 12

It downloads AND setup the version 12 of node as ACTIVE:

"Upon running each mand, nvm will download the version of Node.js from the official website and install it. Once installed, it will also set the version you just installed as the active version."

I found an issue on that topic on GitHub.

The last ment says that you have to run all these mands:

npm install npm@latest -g
sudo npm cache clean -f
sudo npm install -g n
sudo n stable

and then you should be fine

本文标签: