ECMAScript 模块加载器入口点警告
¥ECMAScript modules loader entry point caveat
加载时,ES 模块加载器 加载程序入口点,node
命令将仅接受具有 .js
、.mjs
或 .cjs
扩展名的文件作为输入。 使用以下标志,可以启用其他文件扩展名:
¥When loading, the ES module loader loads the program
entry point, the node
command will accept as input only files with .js
,
.mjs
, or .cjs
extensions. With the following flags, additional file
extensions are enabled:
-
--experimental-wasm-modules
用于具有.wasm
扩展名的文件。¥
--experimental-wasm-modules
for files with.wasm
extension. -
--experimental-addon-modules
用于具有.node
扩展名的文件。¥
--experimental-addon-modules
for files with.node
extension.