React Native Fix Unable to start server

Ketika mencoba React Native saya mendapati error Unable to start server

{12:46}~/Projects/js/HelloWorldRN ➭ npm start  

> HelloWorldRN@0.1.0 start /home/linuxluv/Projects/js/HelloWorldRN
> react-native-scripts start

12:56:52: 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! code ELIFECYCLE
npm ERR! errno 1
npm ERR! HelloWorldRN@0.1.0 start: `react-native-scripts start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the HelloWorldRN@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/linuxluv/.npm/_logs/2018-04-09T05_56_52_919Z-debug.log

Untukmengatasi masalah tersebut, eksekusi perintah berikut
sudo sysctl -w fs.inotify.max_user_instances=1024
sudo sysctl -w fs.inotify.max_user_watches=12288

Setelah menjalankan dua baris perintah tersebut, error Unable to start server berhasil diatasi.

Sebagai informasi versi npm 5.6.0, dan nodejs yang saya gunakan 8.11.1.

Comments

Popular posts from this blog

Contoh Inheritance (Pewarisan) di Java

Deploy CodeIgniter 3 Menggunakan Docker

Physical address dan Logical Address (1)