node-gyp User Caches
~/Library/Caches/node-gyp stores downloaded Node.js header files and other temporary build data used when node-gyp compiles native addons on a Mac.
What is node-gyp User Caches?
~/Library/Caches/node-gyp is a user cache folder created by node-gyp, the Node.js native addon build tool. It stores downloaded header files, version-specific build resources, and other temporary data used while compiling native modules for Node.js projects. Developers commonly encounter this folder when using npm packages that need native compilation, such as modules with C or C++ bindings. The contents help speed up future builds by reusing files that node-gyp would otherwise download again. This folder is part of a developer workflow rather than a normal everyday app setup, and it is most relevant on Macs used for Node.js development.
Review files before deleting with diCleaner
Inspect caches, support files, folders, and related data before deleting items on Mac.
Safety overview
Status: Mostly safe
This folder is generally safe as a cache location, and its purpose matches node-gyp's job of downloading development files needed to build native Node.js addons. Removing it does not normally delete your project source code, but it can force node-gyp to download headers again and may slow or interrupt the next native module build until those files are restored. If you actively use Node.js, npm, Electron, or other tools that compile native addons, expect this folder to be recreated.
Recommendation: Keep this folder if you regularly build or install Node.js packages with native components. If you need to free up space, you can remove it while node-gyp and npm are not running; the main effect is that future builds may take longer and may need to re-download development files.
File path
~/Library/Caches/node-gyp
Share your experience
Be the first to share your experience.