Emitted error event on fswatcher instance at

I am totally new in React/nodjs world, but I am struggling with it for couple of days. I have installed node-v13.50.0-x64 Then I have run following commands: npm install expo-cli --global expo init

I am totally new in React/nodjs world, but I am struggling with it for couple of days.
I have installed node-v13.50.0-x64
Then I have run following commands:

npm install expo-cli --global

expo init myproject

Then navigate to [myproject] location, finally run myproject:

npm start

But the procees got broken every time and I got following error:

events.js:282

      throw er; // Unhandled 'error' event
      ^

Error: UNKNOWN: unknown error, watch
    at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:129:28)
Emitted 'error' event on NodeWatcher instance at:
    at NodeWatcher.checkedEmitError (J:ReactNetNinjamyprojectnode_m
odulessanesrcnode_watcher.js:143:12)
    at FSWatcher.emit (events.js:305:20)
    at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:135:12) {
  errno: -4094,
  syscall: 'watch',
  code: 'UNKNOWN',
  filename: null
}

package.json

  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    "expo": "~36.0.0",
    "react": "~16.9.0",
    "react-dom": "~16.9.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz",
    "react-native-web": "~0.11.7"
  },
  "devDependencies": {
    "babel-preset-expo": "~8.0.0",
    "@babel/core": "^7.0.0"
  },
  "private": true
}

I tried to install npm again and tried to downgrade to older node js but it is it still give same error.

Please help.

When I tried to run jest --watch in a codebase, I received the following error:

Error: EMFILE: too many open files, watch
    at FSEvent.FSWatcher._handle.onchange (fs.js:1372:28)
Emitted 'error' event at:
    at NodeWatcher.checkedEmitError (/Users/seanmcp/dev/REPO/node_modules/sane/src/node_watcher.js:143:12)
    at FSWatcher.emit (events.js:182:13)
    at FSEvent.FSWatcher._handle.onchange (fs.js:1378:12)

A Google search of the error message produced three (!) results. The second was a PDF from Mozilla that recommended installing watchman.

Why watchman?

Watchman is a file-watching service from Facebook that will respond to changes in your files. Jest (also by Facebook) default to using watchman in --watch mode.

Watchman is available on all major platforms. On a Mac or Linux with Homebrew installed, you can run:

brew install watchman

With that installed, Jest’s --watch flag works as expected.

I hope that works for you (and saves you some valuable time)!

Happy testing!


Grepper Logo

Add Answer
|
View In TPC Matrix

Technical Problem Cluster First Answered On
July 17, 2021

Popularity
8/10

Helpfulness
4/10


Contributions From The Grepper Developer Community

Contents

Code Examples

  • Emitted ‘error’ event on NodeWatcher instance
  • Related Problems

  • emitted ‘error’ event on nodewatcher instance at:
  • emitted ‘error’ event on fswatcher instance at:
  • Emitted ‘error’ event on FSEvents Watcher instance at:
  • which process event is emitted right before a node process crashes and exits?
  • TPC Matrix View Full Screen

    Emitted ‘error’ event on NodeWatcher instance

    Comment

    0


    Popularity

    8/10 Helpfulness
    4/10
    Language
    javascript

    Source: Grepper

    Tags: instance
    javascript

    Lokesh003Coding

    Contributed on Jul 17 2021

    Lokesh003Coding

    572 Answers  Avg Quality 7/10


    Grepper

    Features
    Reviews
    Code Answers
    Search Code Snippets

    Plans & Pricing
    FAQ
    Welcome
    Browsers Supported
    Grepper Teams

    Documentation

    Adding a Code Snippet

    Viewing & Copying Snippets

    Social

    Twitter LogoTwitter

    LinkedIn LogoLinkedIn

    Legal

    Privacy Policy
    Terms

    Contact

    support@codegrepper.com

    Понравилась статья? Поделить с друзьями:

    Читайте также:

  • Emitted error event on childprocess instance at
  • Emex 3 критическая ошибка
  • Embedded flash sd card the ahs file system mount failed with i o error
  • Embedded flash sd card error reading media 0 physical block 2 timeout
  • Embed video cannot be played как исправить

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии