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

don't re-install react-scripts when installed globally #1055

Closed
jordyvandomselaar opened this issue Nov 17, 2016 · 5 comments
Closed

don't re-install react-scripts when installed globally #1055

jordyvandomselaar opened this issue Nov 17, 2016 · 5 comments

Comments

@jordyvandomselaar
Copy link

Installing react-scripts can take up to 30 mins on my laptop. Maybe allow create-react-app to use global react-scripts if it's there? I've installed it globally and thought it'd save quite some time, but it tries to download it again anyway when running create-react-app

@gaearon
Copy link
Contributor

gaearon commented Nov 17, 2016

up to 30 mins

That's quite a lot. What version of npm are you using?
With Yarn next installs would be faster too, and #898 will add support for it.

@jordyvandomselaar
Copy link
Author

My npm version is 3.10.9, 30 mins is indeed quite long, and I'm sure windows's cmd isn't the fastest to begin with hahaha

@jordyvandomselaar
Copy link
Author

Here's a full log on what command prompt tells me

Creating a new React app in c:\xampp\htdocs\irc.

Installing packages. This might take a couple minutes.
Installing react-scripts from npm...

npm install --save-dev --save-exact react-scripts failed

c:\xampp\htdocs>```

@gaearon
Copy link
Contributor

gaearon commented Nov 20, 2016

We'll release an update using Yarn soon so you might want to give that a try once it's out.

@gaearon
Copy link
Contributor

gaearon commented Dec 7, 2016

Yarn integration is out in the latest version of Create React App so you can use it, and it should be much better.

@gaearon gaearon closed this as completed Dec 7, 2016
@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants