Create-react-app: Install failed with Node v.10 due to [email protected] incompatibility

Created on 26 Apr 2018  路  13Comments  路  Source: facebook/create-react-app

Is this a bug report?

Not exactly, unless module incompatibility counts as a bug

Environment

  1. node -v: 10.0.0
  2. npm -v: 6.0.0
  3. yarn --version (if you use Yarn): 1.6.0
  4. npm ls react-scripts (if you haven鈥檛 ejected): N/A (install is failing)

Then, specify:

  1. Operating system: Windows 10
  2. Browser and version (if relevant):

Steps to Reproduce

(Write your steps here:)

  1. Install Node v.10
  2. Run create-react-app
  3. Await the error :(

Expected Behavior

I was hoping for a nice clean install of the base project.

Actual Behavior

Install failed:

image

Most helpful comment

Small fix

yarn config set ignore-engines true

All 13 comments

Small fix

yarn config set ignore-engines true

Well there we go. I guess I need to learn yarn better.

Thanks @retyui

We still need to fix this properly by upgrading upath once this is merged and released: https://github.com/anodynos/upath/pull/15

For one time engine ignoring:

yarn --ignore-engines install

@havsar
create-react-app itself starts the installation of dependencies, where you can not fart your arguments
https://github.com/facebook/create-react-app/blob/next/packages/create-react-app/createReactApp.js#L249

Hello everyone - I merged anodynos/upath#15 & published it - thanks & sorry for the delay! You can close the issue, once you check its working.

Great that this was merged. How can we resolve this issue now?

It seems to properly install upath 1.0.5 if I clear the package lock and reinstall.

@nickmccurdy Good idea, I'll try that!

Works for me, thx for the reactivity 馃憤

Hi everyone! Please rm -rf node_modules/ and rm package-lock.json then npm i.
If you're using Yarn, simply run yarn upgrade (if you have an existing project folder).

If this happens while running npx create-react-app my-app and leaves you with nothing, please run npm cache clean --force, then try again.

Shoutout to @retyui for saving my night.

1
down vote
You need to update your Node.js version. Try to

Clear NPM's cache:
sudo npm cache clean -f

Install a little helper called 'n'
sudo npm install -g n

Install latest stable Node.js version
sudo n stable

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ap13p picture ap13p  路  3Comments

wereHamster picture wereHamster  路  3Comments

jnachtigall picture jnachtigall  路  3Comments

alleroux picture alleroux  路  3Comments

oltsa picture oltsa  路  3Comments