-
-
Notifications
You must be signed in to change notification settings - Fork 27k
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
"create-react-app hello-world" fails on Vagrant Ubuntu 12.04 #1693
Comments
Can you please find if (reason.command) {
console.log(' ' + chalk.cyan(reason.command), 'has failed.')
} here with this: if (reason.command) {
console.log(' ' + chalk.cyan(reason.command), 'has failed.')
} else {
console.log(chalk.red(' Unexpected error. Please report it as a bug:'));
console.log(reason);
} and then try again and paste the output here? (I’d also appreciate a PR adding this diagnostic code to the tool, we should’ve done this before releasing.) |
Thanks for the super fast response. Created the PR and here is the output:
|
This is kinda weird:
Can you show the contents of this file around this line? |
Nothing looks out of place on the surface of it. Same as other copies of this library on my computer. This is what I'm seeing:
|
Why did it point to |
I would love to check there, but the program deletes the files in the cleanup process as it is aborting. |
Oh well, you obviously can’t, it was deleted 😄 |
Sure, I'll give it a shot |
Should be a matter of commenting this section. |
Can you install |
No love. I actually had a previous version of Not sure if this is relevant, since the deleting code is still commented, but I'm getting a different error (but similar corruption) now:
|
Are you behind a proxy, or using a non-standard npm registry by any chance? |
No, sorry, neither of those things. |
Can you run |
Not exactly sure what you're looking for, so may be doing this wrong, but:
Then:
No apparent corruption in the file: |
While I empathize with your problem, those screenshots are beautiful in a way. |
Thanks, this is even more interesting. |
Seems to have completed successfully:
|
Does |
@tgig What kind of network adapter are you using? |
I've seen my Anker USB 3 -> Ethernet adapter (part of a USB 3 hub) corrupt data. Seems to happen when the machine has slept and reawoken. (I've seen this happen on macOS; not sure if you're directly in Linux or in a VM/container...) |
I don’t know what’s causing this, but it’s clearly some sort of data corruption. Whether it happens on the disk, or during fetching, I can’t tell. |
Yes, the file in And, I'm on a Macbook Pro, running Vagrant virtual machines, with a wireless connection. I've never seen this kind of behavior before...
|
I'll try the good 'ol remove everything, reboot, reinstall, reboot, try again method and see if that makes any difference. Thanks a lot for your help, could not have gotten nearly this far w/o you. Will get back soon. |
I’d also suggest installing Yarn. CRA will use it automatically if it’s installed on the system. Not saying Yarn would fix it, but would give us another data point. |
Hey, it worked! Not sure if it was the uninstall/reinstall, or having Yarn do the magic. But... here we go. Unfortunately, now experiencing another weird issue: I'm running this inside of a Vagrant box. When I edit the file in my Sublime Text editor from my local machine, the development server does not recognize the change, and does not re-load the files. When I use I'm happy to research this on my own or open a new issue. Maybe it's an easy fix and you can point me in the right direction? |
Can you try creating an |
Worked. Thanks again! I'm good to go. |
If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.
Can you reproduce the problem with latest npm?
I am using npm version 4.3.0
Description
I can't use
create-react-app hello-world
on Vagrant Ubuntu . It fails with the error "Aborting installation", then deletes the files it previously installed.Actual behavior
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
(if you haven’t ejected):node -v
:6.9.1
npm -v
:4.3.0
Then, specify:
The text was updated successfully, but these errors were encountered: