-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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 failing #1965
Comments
Can you post output of |
1.3.0 |
We made a mistake of deleting npm log files so we can't really tell what happened 😞 I think we should remove Can you try to do these changes to your local Sorry for the trouble. |
I did the above changes and could not see any files generated. Looks like I have to finally learn webpack :( |
Well, the issue is clearly with npm. Can you run
and post the output? I'd assume it would also fail. |
I ran the above commands and did not see any error. A folder called node_modules was created with various modules and a .bin folder. I got the following warnings, but overall the operation was successful |
Okay, thanks for trying. child.on('close', function(code) {
console.log(code); // <--- add this
if (code !== 0) {
reject({
command: command + ' ' + args.join(' ')
});
return;
}
resolve();
}); and try again? |
Actually can I ask you to run |
@anilpank I guess issue is with |
I have the exact same problem =( |
It’s not an issue though. npm warns about an optional dependency, but it should not cause any errors. We have a continuous integration test that runs on Windows, and it works fine. If you still have issues please run the command with |
I have the same problem. How can I fix this? node -v 7.10.0 npm -v 4.2.0 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/react-scripts/node_modules/fsevents): npm ERR! EPROTO: protocol error, symlink '../acorn/bin/acorn' -> '/app/my-react/node_modules/.bin/acorn' npm ERR! Please include the following file with any support request: Aborting installation. Deleting generated file... node_modules |
@SeducerStar based on this
npm fails to create a symlink for acorn. Do you run create-react-app in a linux vm for a shared folder in a windows host? edit:
it seems likely that it is. try to run it with node in your host machine. AFAIK symlinking in a shared folder from windows will cause this |
@viankakrisna |
yeah there's an issue with symlink and shared folder if your host is windows. I'm not aware any solution for this, so instead i just install and run node / npm / cra from the host machine. I don't know if this issue also exists in linux / macOS though, because of the windows experience when i'm switching to mac i just install node and npm (and cra) on the host machine. |
|
I have the same issue. What is interesting, sometimes it completes successfully (especially when running with |
There is a new fs-events release that might fix the issue on Windows. Let's see when create-react-app will use this: https://github.com/strongloop/fsevents/releases/tag/v1.1.2 |
I am having the same issue with fsevents! But for me it never works even with --verbose. |
npm 5.x is very buggy at this moment. Please revert to npm 4.x in the meantime. |
G:\GURU\WORK-BENCH\PROJECTS\ReactJS>create-react-app --version G:\GURU\WORK-BENCH\PROJECTS\ReactJS>create-react-app my-app -----------------------------------what is going on here ==unsolved==--------------------------- Creating a new React app in G:\GURU\WORK-BENCH\PROJECTS\ReactJS\my-app. Installing packages. This might take a couple of minutes. npm ERR! Unexpected end of JSON input while parsing near '...lugin-flowtype","dist' npm ERR! A complete log of this run can be found in: Aborting installation. Deleting generated file... package.json |
@guru9
and then
|
C:\Users\krist\Desktop Creating a new React app in C:\Users\krist\Desktop\my-app. Installing packages. This might take a couple of minutes. npm ERR! code ENOVERSIONS npm ERR! A complete log of this run can be found in: Aborting installation. Deleting generated file... package.json C:\Users\krist\Desktop C:\Users\krist\Desktop |
Windows host, Virtualbox running arch linux and the following versions:
If I use the create-react-app in the vm on the vm filesystem, there is no problems.
If I try a symlink or an rm -rf manually, it actually works... So I'm confused why the mounted share (virtualbox) makes it fail like this. |
On windows it is not resolvable it seems. ref:
I could not get it to work. |
We can't do much here; we just delegate to npm. If it fails, it fails. |
I had the same problem running on Virtual Linux Machine. The host ran out of memory. Bumped up the RAM and it worked. |
use create-react-app projectname --save |
I switched to next.js and my problem is solved now. |
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?
Many errors, especially related to "missing modules", are due to npm bugs.
If you're using Windows, follow these instructions to update npm.
If you're using OS X or Linux, run this to update npm:
Then try to reproduce the issue again.
Can you still reproduce it?
Yes
Description
I am trying to use create-react-app to create a react app using command create-react-app work. My OS is Windows 7 64 bit, npm version is 4.5.0, node version is v7.8.0, I tried with earlier npm and node versions as well and still unable to use create-react-app
What are you reporting?
Expected behavior
The command above should be able to create react app.
Tell us what you think should happen.
Actual behavior
Tell us what actually happens.
It aborts with following messages.
npm WARN prefer global [email protected] should be installed with -g
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\react-scripts\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
Aborting installation.
npm install --save --save-exact react react-dom react-scripts has failed.
Deleting generated file... node_modules
Deleting generated file... package.json
Deleting work/ from C:\anil\business
Done.
Environment
Windows 7 64 bit
Run these commands in the project folder and fill in their results:
npm ls react-scripts
(if you haven’t ejected):C:\anil\business
`-- (empty)
node -v
:v7.8.0
npm -v
:4.5.0
Then, specify:
Windows
NA
Reproducible Demo
Please take the time to create a new app that reproduces the issue.
Alternatively, you could copy your app that experiences the problem and start removing things until you’re left with the minimal reproducible demo.
(Accidentally, you might get to the root of your problem during that process.)
log.txt
Push to GitHub and paste the link here.
By doing this, you're helping the Create React App contributors a big time!
Demonstrable issues gets fixed faster.
The text was updated successfully, but these errors were encountered: