Skip to content

Commit 80e5150

Browse files
ShenHongFeiRafaelGSS
authored andcommitted
doc: fix module compile cache description
PR-URL: #54625 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent f8cbbc6 commit 80e5150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/module.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ directory will be recreated the next time the same directory is used for for com
182182
storage. To avoid filling up the disk with stale cache, it is recommended to use a directory
183183
under the [`os.tmpdir()`][]. If the compile cache is enabled by a call to
184184
[`module.enableCompileCache()`][] without specifying the directory, Node.js will use
185-
the [`NODE_DISABLE_COMPILE_CACHE=1`][] environment variable if it's set, or defaults
185+
the [`NODE_COMPILE_CACHE=dir`][] environment variable if it's set, or defaults
186186
to `path.join(os.tmpdir(), 'node-compile-cache')` otherwise. To locate the compile cache
187187
directory used by a running Node.js instance, use [`module.getCompileCacheDir()`][].
188188

0 commit comments

Comments
 (0)