macosnpmgarbage-collectionyarnpkg

yarn - Cannot find module './build/Release/GcProfiler


I updated the mac OS to Sequoia 15.2.

When I run yarn I get the error:

Cannot find module './build/Release/GcProfiler

and

error: fatal error: 'atomic' file not found 22 | #include <atomic> | ^~~~~~~~ 1 error 
generated. make: *** 
[Release/obj.target/GcProfiler/src/GcProfiler.o site:stackoverflow.com

Solution

  • Run:

    1. sudo rm -rf /Library/Developer/CommandLineTools
    2. xcode-select --install