NODE_COMPILE_CACHE_PORTABLE=1


当设置为1时,只要模块布局相对于缓存目录保持不变,模块编译缓存就可以在不同的目录位置之间重复使用,而且任何用户都可以使用(缓存子目录不会以创建用户的UID为后缀)。

🌐 When set to 1, the module compile cache can be reused across different directory locations as long as the module layout relative to the cache directory remains the same, and by any user (the cache subdirectory is not suffixed with the creating user's uid).