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.

Unable to start application via npm start

See original GitHub issue

Description

I am not able to start application via npm start

Expected Behavior

I am able to start application and visit in my iPhone.

Observed Behavior

Application does not start. Full terminal output is:

$ npm start

> Ruzenec_iOS@0.1.0 start /home/phracek/work/programming/Ruzenec_iOS
> react-native-scripts start

10:35:25 AM: Unable to start server
  See https://git.io/v5vcn for more information, either install watchman or run the following snippet:
    sudo sysctl -w fs.inotify.max_user_instances=1024
    sudo sysctl -w fs.inotify.max_user_watches=12288

npm ERR! Linux 4.13.11-200.fc26.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v6.11.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! Ruzenec_iOS@0.1.0 start: `react-native-scripts start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the Ruzenec_iOS@0.1.0 start script 'react-native-scripts start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the Ruzenec_iOS package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     react-native-scripts start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs Ruzenec_iOS
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls Ruzenec_iOS
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/phracek/work/programming/Ruzenec_iOS/npm-debug.log

Environment

Please run these commands in the project folder and fill in their results:

  • npm ls react-native-scripts:
Ruzenec_iOS@0.1.0 /home/phracek/work/programming/Ruzenec_iOS
└── react-native-scripts@1.7.0
  • npm ls react-native:
Ruzenec_iOS@0.1.0 /home/phracek/work/programming/Ruzenec_iOS
└── react-native@0.49.5 

  • npm ls expo:
Ruzenec_iOS@0.1.0 /home/phracek/work/programming/Ruzenec_iOS
└─┬ expo@22.0.4 
  └── UNMET PEER DEPENDENCY react@>=15.4.0

  • node -v: v6.11.5
  • npm -v: 3.10.10
  • yarn --version:
bash: yarn: command not found...
Packages providing this file are:
'hadoop-yarn'
'cmdtest'

  • watchman version:

Also specify:

  1. Operating system: Linux
  2. Phone/emulator/simulator & version:

Reproducible Demo

Please provide a minimized reproducible demonstration of the problem you’re reporting. I went through documentation mentioned here https://facebook.github.io/react-native/docs/getting-started.html

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8

github_iconTop GitHub Comments

23reactions
kajmcommented, Nov 17, 2017

have you tried both commands: sudo sysctl -w fs.inotify.max_user_instances=1024 sudo sysctl -w fs.inotify.max_user_watches=12288 they worked for me

5reactions
farmcpcommented, Feb 20, 2018

@kajm what does those commands actually do?

Read more comments on GitHub >

github_iconTop Results From Across the Web

can't run "npm start" - Stack Overflow
You need to add a start script under scripts , and to host or start the application on local node server, add the...
Read more >
How to fix npm start command not working - Nathan Sebhastian
How to fix npm start command not working · Check if you have a package.json file in your project · Check if you...
Read more >
npm start unable to start · Discussion #10848 - GitHub
These type of errors usually occur when some npm module is not properly installed. Try deleting the node_modules and then by freshly installing...
Read more >
Getting an error while running nodejs app when running locally
Failed at the dashdbnodesample@0.0.1 start script 'node app.js'. npm ERR! ... Or if that isn't available, you can get their info via: npm...
Read more >
"The NPM script 'start' exited without indicating that the create ...
"The NPM script 'start' exited without indicating that the create-react-app server was listening for requests" In .Net React Application.
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