question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"create-react-app hello-world" fails on Vagrant Ubuntu 12.04

See original GitHub issue

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

root@precise64:/code/React# create-react-app hello-world
Creating a new React app in /code/React/hello-world.

Installing packages. This might take a couple minutes.
Installing react, react-dom, and react-scripts...

npm WARN prefer global marked@0.3.6 should be installed with -g
hello-world@0.1.0 /code/React/hello-world
+-- react@15.4.2
| +-- fbjs@0.8.9
| | +-- core-js@1.2.7
| | +-- isomorphic-fetch@2.2.1
| | | `-- node-fetch@1.6.3
| | |   +-- encoding@0.1.12
...
...
| +-- stream-cache@0.0.2
  | `-- webpack-dev-middleware@1.10.1
  |   +-- memory-fs@0.4.1
  |   `-- mime@1.3.4
  +-- webpack-manifest-plugin@1.1.0
  `-- whatwg-fetch@2.0.2

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.0.17 (node_modules/react-scripts/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","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 fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

Aborting installation.

Deleting generated file... node_modules
Deleting generated file... package.json
Deleting hello-world/ from /code/React
Done.

Environment

Run these commands in the project folder and fill in their results:

  1. npm ls react-scripts (if you haven’t ejected):
/code/React
`-- (empty)
  1. node -v: 6.9.1
  2. npm -v: 4.3.0

Then, specify:

  1. Operating system: Vagrant virtual machine running Ubuntu 12.04 LTS
  2. Browser and version: n/a

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:29 (27 by maintainers)

github_iconTop GitHub Comments

3reactions
tgigcommented, Mar 2, 2017

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.

3reactions
gaearoncommented, Mar 2, 2017

While I empathize with your problem, those screenshots are beautiful in a way.

Read more comments on GitHub >

github_iconTop Results From Across the Web

create-react-app does not work in my ubuntu vagrant ...
I have been trying this for several houses now to install and run react in my vagrant ubuntu (14) box. I have followed...
Read more >
Docker : Run a React app in a docker - 2020
React App the works by running the following command: $ npx create-react-app hello-world ... Installing packages. This might take a couple of minutes....
Read more >
Hello World
In this guide, we will examine the building blocks of React apps: elements and components. Once you master them, you can create complex...
Read more >
Installing Ubuntu Desktop 22.04 LTS, Visual Studio Code and ...
Installing Ubuntu Desktop 22.04 LTS, Visual Studio Code and Node.js on a virtual machine using Vagrant and Oracle VirtualBox.
Read more >
Troubleshooting
If you are using a Linux operating system and see an error similar to: ENOSPC: System limit for number of file watchers reached...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found