Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install failed with Node v.10 due to upath@1.0.4 incompatibility #4367

Closed
jmhdev opened this issue Apr 26, 2018 · 13 comments
Closed

Install failed with Node v.10 due to upath@1.0.4 incompatibility #4367

jmhdev opened this issue Apr 26, 2018 · 13 comments

Comments

@jmhdev
Copy link

jmhdev commented Apr 26, 2018

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’t 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

@retyui
Copy link

retyui commented Apr 26, 2018

Small fix

yarn config set ignore-engines true

@jmhdev
Copy link
Author

jmhdev commented Apr 26, 2018

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

Thanks @retyui

@iansu
Copy link
Contributor

iansu commented Apr 26, 2018

We still need to fix this properly by upgrading upath once this is merged and released: anodynos/upath#15

@havsar
Copy link

havsar commented Apr 27, 2018

For one time engine ignoring:

yarn --ignore-engines install

@retyui
Copy link

retyui commented Apr 27, 2018

@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

@anodynos
Copy link

anodynos commented Apr 27, 2018

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

@panmona
Copy link

panmona commented Apr 29, 2018

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

@nickserv
Copy link
Contributor

nickserv commented Apr 29, 2018

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

@panmona
Copy link

panmona commented Apr 29, 2018

@nickmccurdy Good idea, I'll try that!

@jdoucy
Copy link

jdoucy commented Apr 30, 2018

Works for me, thx for the reactivity 👍

@Timer Timer closed this as completed Apr 30, 2018
@Timer
Copy link
Contributor

Timer commented Apr 30, 2018

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.

@jameshahn2
Copy link

Shoutout to @retyui for saving my night.

@manishmudgal
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests