Error from chokidar : Error: UNKNOWN: unknown error, watch

13,245

Solution 1

you need to just Delete the node module folder

npm install
npm cache clean

Solution 2

Is your project on a network drive? Move the project to local drive, issues should go away.

The files might be local, but accessed through Samba protocol (exp. through drives created with net use Z: \\localhost\C$\path\to\my\project command). This will generate same issue.

Solution 3

I had this issue. Try creating the angular app in C drive only. Worked for me.

Share:
13,245

Related videos on Youtube

pim
Author by

pim

Updated on June 04, 2022

Comments

  • pim
    pim almost 2 years

    In a new Angular app I'm getting the following error:

    Error from chokidar : Error: UNKNOWN: unknown error, watch

    I've deleted and re-installed node_modules, downloaded the entire project again etc.

    Node version is 12.18.2

    • Pardeep Jain
      Pardeep Jain almost 4 years
      chokidar is this any kind of package you are using?
    • pim
      pim almost 4 years
      chokidar is used by default when creating a new Angular app. It is used to serve the project for testing etc. npmjs.com/package/chokidar
    • Pardeep Jain
      Pardeep Jain almost 4 years
      i didn't know that, thanks. Can you try running npm cache clean -f and then same steps to install application
    • pim
      pim almost 4 years
      Yes cleared the cache and removed/reinstalled all the node_modules to try to fix it but still getting the same...