Questions tagged [fsevents]

204 questions
179
votes
21 answers

How to solve npm install throwing fsevents warning on non-MAC OS?

Following warning is being thrown on npm install command - npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules\rea ct-scripts\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for…
Sandeepan Nath
  • 9,966
  • 17
  • 86
  • 144
155
votes
5 answers

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents

I'm trying to run this project. After updating minimatch version to 3.10.9, I'm getting the following error: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0…
Aishwary Tiwari
  • 1,643
  • 2
  • 10
  • 12
122
votes
31 answers

webpack --watch isn't compiling changed files

I tried running webpack --watch and after editing my JS files, it doesn't trigger an auto-recompilation. I've tried reinstalling webpack using npm uninstall but it's still not working. Any ideas?
alcedo
  • 1,632
  • 2
  • 12
  • 14
87
votes
6 answers

How do I make my program watch for file modification in C++?

There are a lot of programs, Visual Studio for instance, that can detect when an outside program modifies a file and then reload the file if the user wants chooses. Is there a relatively easy way to do this sort of thing in C++ (doesn't necessarily…
Alex
  • 14,973
  • 13
  • 59
  • 94
79
votes
7 answers

Not compatible with your operating system or architecture: fsevents@1.0.11

I'm using Ubuntu 15.04. While running the following command: npm install fsevents I'm getting following error: npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or…
randomuser
  • 1,201
  • 2
  • 10
  • 19
31
votes
4 answers

File-level filesystem change notification in Mac OS X

I want my code to be notified when any file under (either directly or indirectly) a given directory is modified. By "modified", I mean I want my code to be notified whenever a file's contents are altered, it's renamed, or it's deleted; or if a new…
Paul J. Lucas
  • 6,895
  • 6
  • 44
  • 88
26
votes
5 answers

Angular CLI - ng serve - high cpu usage from node process

I am struggling with an issue where on running any angular app locally the node process linked to ng serve is using well over 100% of my CPU core's. My current environment is: Angular CLI: 7.3.10 Node: 11.15.0 OS: darwin x64 (Mac OS X Catalina…
mindparse
  • 6,115
  • 27
  • 90
  • 191
25
votes
3 answers

Is there any way to get rid of npm optional dependency warnings through editing package.json?

I hate warnings. Especially when those warnings are completely ignorable. Most warnings I encounter are non-clean code warnings and I like to have my code clean. Other warning are actual errors. Sometimes I miss error warnings because they were…
Folaht
  • 1,053
  • 1
  • 13
  • 32
20
votes
5 answers

reloadData in NSTableView but keep current selection

I have anNSTableView showing the contents of a directory. I watch for FSEvents, and each time I get an event I reload my table view. Unfortunately, the current selection then disappears. Is there a way to avoid that?
AP.
  • 5,205
  • 7
  • 50
  • 94
20
votes
4 answers

Running suggested command doesn't fix NPM Vulnerability

After each installation of a new NPM module in my project I get the following error : [!] 40 vulnerabilities found - Packages audited: 5840 (0 dev, 299 optional) Severity: 8 Low | 24 Moderate | 8 High So then I run npm audit and I get the…
Mouradif
  • 2,666
  • 1
  • 20
  • 37
19
votes
2 answers

How to solve npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13

if I am trying to install a new library I getting this warning. And also that library is not getting installed npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents): npm WARN notsup…
16
votes
1 answer

OSX FSEventStreamEventFlags not working correctly

I am watching a directory for file system events. Everything seems to work fine with one exception. When I create a file the first time, it spits out that it was created. Then I can remove it and it says it was removed. When I go to create the same…
Capt.Redbeard
  • 790
  • 1
  • 8
  • 14
15
votes
5 answers

(FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)

When I run react-scripts test --env=jsdom it always display: 2018-07-04 09:57 node[61600] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22) 2018-07-04 09:57 node[61600] (FSEvents.framework)…
Tryliom
  • 895
  • 1
  • 12
  • 37
15
votes
2 answers

How to monitor file changes on network mapped drives?

From what I see, network mapped drives appear as subfolders of the /Volumes folder. What is the proper way to get file changes updates (delete/create/update) from this folder? Would /dev/fsevents work for that? How does Finder know about the…
Jamie
  • 657
  • 7
  • 18
14
votes
1 answer

FSEvents - get PID of the process that performed the operation

On OS X, using the FSEvents API, I can easily get file and directory notifications (created, removed, etc), for paths of interest. However, I was wondering if there is any way to get the PID or name of the process that performed the operation (e.g.…
patrick
  • 380
  • 2
  • 14
1
2 3
13 14