Unable to start application via npm start
See original GitHub issueDescription
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.5npm -v
: 3.10.10yarn --version
:
bash: yarn: command not found...
Packages providing this file are:
'hadoop-yarn'
'cmdtest'
watchman version
:
Also specify:
- Operating system: Linux
- 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:
- Created 6 years ago
- Comments:8
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
@kajm what does those commands actually do?